user32: Check the active window instead of the foreground to show/hide owned popups.
This commit is contained in:
parent
f26b4f68e7
commit
7ea98f680d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue