winemac: Let Wine always drive window minimization; Cocoa just requests it.

Ken Thomases ken at codeweavers.com
Mon Sep 30 10:29:23 CDT 2013


Previously, clicking the yellow minimize button in the window title bar or
selecting Minimize from the Window menu in the Mac menu bar would cause Cocoa
to immediately minimize the window.  The main-thread code would then inform
the app and user32 that the window had been minimized.

Now those user actions merely send a request to minimize the window in the
same manner as clicking on the minimize box in the Windows-style title bar
(which isn't shown).  The app and/or user32 decide how to respond and whether
to actually minimize the window.  Only if they do is Cocoa then told to do so.
---
dlls/winemac.drv/cocoa_window.h |    1 -
dlls/winemac.drv/cocoa_window.m |   37 +++++++----------------
dlls/winemac.drv/event.c        |   10 +++---
dlls/winemac.drv/macdrv.h       |    2 +-
dlls/winemac.drv/macdrv_cocoa.h |    2 +-
dlls/winemac.drv/window.c       |   61 ++++++++++++++++++++++++++-------------
6 files changed, 59 insertions(+), 54 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-winemac-Let-Wine-always-drive-window-minimization-Co.patch
Type: text/x-patch
Size: 10857 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20130930/6b9f51f2/attachment-0001.bin>


More information about the wine-patches mailing list