Module: wine Branch: master Commit: 2e4f89edf1e394678b000d8d1c355422192e8267 URL: http://source.winehq.org/git/wine.git/?a=commit;h=2e4f89edf1e394678b000d8d1c...
Author: Alexandre Julliard julliard@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@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 */