Alexandre Julliard : user32: Check the active window instead of the foreground to show/ hide owned popups.
Alexandre Julliard
julliard at winehq.org
Wed May 26 11:49:07 CDT 2010
Module: wine
Branch: master
Commit: 7ea98f680d051aeda02705d1520e4d636cc181b5
URL: http://source.winehq.org/git/wine.git/?a=commit;h=7ea98f680d051aeda02705d1520e4d636cc181b5
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed May 26 10:39:01 2010 +0200
user32: Check the active window instead of the foreground to show/hide owned popups.
---
dlls/user32/nonclient.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/user32/nonclient.c b/dlls/user32/nonclient.c
index c8d19d9..a685370 100644
--- a/dlls/user32/nonclient.c
+++ b/dlls/user32/nonclient.c
@@ -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;
More information about the wine-cvs
mailing list