[PATCH 2/2] winemac: Prevent maximized windows from entering Cocoa full-screen mode.

Ken Thomases ken at codeweavers.com
Thu Mar 12 18:45:25 CDT 2015


OS X doesn't really have the concept of windows being maximized; that is, being
in a mode where they can't be moved or resized.  As a consequence, it doesn't
have a button in the window title bar to restore a maximized window to normal.
So, when a Wine window is maximized, the Mac driver hijacks the green zoom
button to act as a restore button.  (When a window is zoomed, the green button
"unzooms" back to its last user size and position, so it's analogous.)

However, with OS X 10.10 (Yosemite), the green button prefers to act as a
toggle for the Cocoa full-screen mode rather than zooming and unzooming.  This
made it difficult for users to restore a maximized window.  They would have to
Option-click the green button, double-click the title bar, or choose Zoom
from the Window menu, none of which is obvious.

The fix is to disable Cocoa full-screen mode for maximized windows.  Then, the
green button reverts to unzoom and restoring the window.
---
dlls/winemac.drv/cocoa_window.m | 44 ++++++++++++++++++++---------------------
1 file changed, 22 insertions(+), 22 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-winemac-Prevent-maximized-windows-from-entering-Coco.patch
Type: text/x-patch
Size: 3451 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20150312/5ac57ad0/attachment.bin>


More information about the wine-patches mailing list