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