mirror of
https://github.com/reactos/reactos.git
synced 2024-06-21 13:31:38 +00:00
[NTUSER] Fix ShellHook notifications when creating/activating windows (#2396)
This commit is contained in:
parent
d4699bc67f
commit
848d7ec633
|
@ -52,7 +52,6 @@ VOID FASTCALL
|
|||
UpdateShellHook(PWND Window)
|
||||
{
|
||||
if ( Window->spwndParent == UserGetDesktopWindow() &&
|
||||
Window->spwndOwner == NULL &&
|
||||
(!(Window->ExStyle & WS_EX_TOOLWINDOW) ||
|
||||
(Window->ExStyle & WS_EX_APPWINDOW)))
|
||||
{
|
||||
|
@ -511,7 +510,8 @@ co_IntSendActivateMessages(PWND WindowPrev, PWND Window, BOOL MouseActivate, BOO
|
|||
MAKEWPARAM(MouseActivate ? WA_CLICKACTIVE : WA_ACTIVE, (Window->style & WS_MINIMIZE) != 0),
|
||||
(LPARAM)(WindowPrev ? UserHMGetHandle(WindowPrev) : 0));
|
||||
|
||||
UpdateShellHook(Window);
|
||||
if (Window->style & WS_VISIBLE)
|
||||
UpdateShellHook(Window);
|
||||
|
||||
Window->state &= ~WNDS_NONCPAINT;
|
||||
|
||||
|
|
|
@ -1913,6 +1913,8 @@ co_WinPosSetWindowPos(
|
|||
(Window->ExStyle & WS_EX_APPWINDOW)))
|
||||
{
|
||||
co_IntShellHookNotify(HSHELL_WINDOWCREATED, (WPARAM)Window->head.h, 0);
|
||||
if (!(WinPos.flags & SWP_NOACTIVATE))
|
||||
UpdateShellHook(Window);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue