cocoa: constraint the window position a little more

The intention of this is to not make the window go outside the screen when
changing dimensions from 2x to .5x.