winemac: Only update window minimized state when it has changed from what processed...
commit34cae2784e1ab0689ace0123cfc08954a3ea6093
authorKen Thomases <ken@codeweavers.com>
Tue, 8 Oct 2013 07:21:24 +0000 (8 02:21 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 15 Nov 2013 15:23:36 +0000 (15 16:23 +0100)
tree29bb5f4bbfebc7a825c2a3b2f6d836898bbbc7a3
parent3e5631cc3281a4191a531d1b3aada0e1442914ae
winemac: Only update window minimized state when it has changed from what processed events told us it was.

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.

(cherry picked from commit dd59ab26fe83176f71979f624490a682bb22cb16)
dlls/winemac.drv/cocoa_window.m
dlls/winemac.drv/macdrv_cocoa.h
dlls/winemac.drv/window.c