fix for window resize mode

because the resize mode handles the min/max buttons too

Closes #1194