Fixes resizeWindow() on OS X (Bug #3200)