winemac: Only update window minimized state when it has changed from what processed...
commitdd59ab26fe83176f71979f624490a682bb22cb16
authorKen Thomases <ken@codeweavers.com>
Tue, 8 Oct 2013 07:21:24 +0000 (8 02:21 -0500)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 8 Oct 2013 13:39:01 +0000 (8 15:39 +0200)
tree4853f79f8dd26cd6a54cf99154262015e6418d51
parent0e8e45cf99c479dbef4bca491e4f1cc58992c1f7
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.
dlls/winemac.drv/cocoa_window.m
dlls/winemac.drv/macdrv_cocoa.h
dlls/winemac.drv/window.c