user32: Notify explorer when the active window changes.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
69b41aebda
commit
2e4f89edf1
|
@ -154,6 +154,8 @@ static BOOL set_active_window( HWND hwnd, HWND *prev, BOOL mouse, BOOL focus )
|
||||||
SendMessageW( hwnd, WM_ACTIVATE,
|
SendMessageW( hwnd, WM_ACTIVATE,
|
||||||
MAKEWPARAM( mouse ? WA_CLICKACTIVE : WA_ACTIVE, IsIconic(hwnd) ),
|
MAKEWPARAM( mouse ? WA_CLICKACTIVE : WA_ACTIVE, IsIconic(hwnd) ),
|
||||||
(LPARAM)previous );
|
(LPARAM)previous );
|
||||||
|
if (GetAncestor( hwnd, GA_PARENT ) == GetDesktopWindow())
|
||||||
|
PostMessageW( GetDesktopWindow(), WM_PARENTNOTIFY, WM_NCACTIVATE, (LPARAM)hwnd );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* now change focus if necessary */
|
/* now change focus if necessary */
|
||||||
|
|
Loading…
Reference in New Issue