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:
parent
bcde44fb8a
commit
94cfa7799b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue