Alexandre Julliard : user32: Notify explorer when the active window changes.
Alexandre Julliard
julliard at winehq.org
Fri Jun 10 09:05:46 CDT 2016
Module: wine
Branch: master
Commit: 2e4f89edf1e394678b000d8d1c355422192e8267
URL: http://source.winehq.org/git/wine.git/?a=commit;h=2e4f89edf1e394678b000d8d1c355422192e8267
Author: Alexandre Julliard <julliard at winehq.org>
Date: Fri Jun 10 14:05:38 2016 +0900
user32: Notify explorer when the active window changes.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/user32/focus.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/dlls/user32/focus.c b/dlls/user32/focus.c
index c47a82d..f1c8831 100644
--- a/dlls/user32/focus.c
+++ b/dlls/user32/focus.c
@@ -154,6 +154,8 @@ static BOOL set_active_window( HWND hwnd, HWND *prev, BOOL mouse, BOOL focus )
SendMessageW( hwnd, WM_ACTIVATE,
MAKEWPARAM( mouse ? WA_CLICKACTIVE : WA_ACTIVE, IsIconic(hwnd) ),
(LPARAM)previous );
+ if (GetAncestor( hwnd, GA_PARENT ) == GetDesktopWindow())
+ PostMessageW( GetDesktopWindow(), WM_PARENTNOTIFY, WM_NCACTIVATE, (LPARAM)hwnd );
}
/* now change focus if necessary */
More information about the wine-cvs
mailing list