[PATCH 2/6] winemac: Only update window minimized state when it has changed from what processed events told us it was.

Ken Thomases ken at codeweavers.com
Tue Oct 8 02:21:24 CDT 2013


This fixes a problem where windows could spontaneously re-minimize after
being unminimized.  Cocoa would see the window unminimize.  It would queue
a WINDOW_DID_UNMINIMIZE event.  While that event was pending, Wine might do
something which caused set_cocoa_window_properties() to be called and tell
Cocoa to conform itself to the current Win32 state.  The current Win32 state
still had the window minimized, so Cocoa would re-minimize the window.  It
would even discard the WINDOW_DID_UNMINIMIZE event.
---
dlls/winemac.drv/cocoa_window.m | 33 ++++++++++++++++++---------------
dlls/winemac.drv/macdrv_cocoa.h |  1 +
dlls/winemac.drv/window.c       |  4 +++-
3 files changed, 22 insertions(+), 16 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-winemac-Only-update-window-minimized-state-when-it-h.patch
Type: text/x-patch
Size: 3183 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20131008/83f59a89/attachment.bin>


More information about the wine-patches mailing list