Commit 7ea98f68 authored by Alexandre Julliard's avatar Alexandre Julliard

user32: Check the active window instead of the foreground to show/hide owned popups.

parent f26b4f68
......@@ -1548,19 +1548,19 @@ LRESULT NC_HandleSysCommand( HWND hwnd, WPARAM wParam, LPARAM lParam )
break;
case SC_MINIMIZE:
if (hwnd == GetForegroundWindow())
if (hwnd == GetActiveWindow())
ShowOwnedPopups(hwnd,FALSE);
ShowWindow( hwnd, SW_MINIMIZE );
break;
case SC_MAXIMIZE:
if (IsIconic(hwnd) && hwnd == GetForegroundWindow())
if (IsIconic(hwnd) && hwnd == GetActiveWindow())
ShowOwnedPopups(hwnd,TRUE);
ShowWindow( hwnd, SW_MAXIMIZE );
break;
case SC_RESTORE:
if (IsIconic(hwnd) && hwnd == GetForegroundWindow())
if (IsIconic(hwnd) && hwnd == GetActiveWindow())
ShowOwnedPopups(hwnd,TRUE);
ShowWindow( hwnd, SW_RESTORE );
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment