cocoa_common: keep aspect ratio when clipping window

With commit 33ffc283 resizing to double size would cause the window to lose
aspect ratio. This commit fixes this bug.