winemac: For WINDOW_DID_UNMINIMIZE events, don't attempt to restore windows which aren't minimized and visible.

The Win32 window state might have changed while the event was in the queue,
making it obsolete.  Sending WM_SYSCOMMAND/SC_RESTORE might re-show a hidden
window, for example.
This commit is contained in:
Ken Thomases 2013-12-31 01:05:15 -06:00 committed by Alexandre Julliard
parent bcde44fb8a
commit 94cfa7799b
1 changed files with 1 additions and 1 deletions

View File

@ -2095,7 +2095,7 @@ void macdrv_window_did_unminimize(HWND hwnd)
style = GetWindowLongW(hwnd, GWL_STYLE);
data->minimized = FALSE;
if (style & (WS_MINIMIZE | WS_MAXIMIZE))
if ((style & (WS_MINIMIZE | WS_VISIBLE)) == (WS_MINIMIZE | WS_VISIBLE))
{
TRACE("restoring win %p/%p\n", hwnd, data->cocoa_window);
release_win_data(data);