From f4ab2b4a4b3b5bd54a1a2676483ffee927a552de Mon Sep 17 00:00:00 2001 From: Michael Martin Date: Sat, 25 Oct 2008 18:42:42 +0000 Subject: [PATCH] - Correct fix for handling WM_MOUSEACTIVATE and Bug #3111. If no parent, use MsgWindow->hSelf as wParam. svn path=/trunk/; revision=36965 --- reactos/subsystems/win32/win32k/ntuser/message.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/reactos/subsystems/win32/win32k/ntuser/message.c b/reactos/subsystems/win32/win32k/ntuser/message.c index 6851cab7448..befedc2e1a3 100644 --- a/reactos/subsystems/win32/win32k/ntuser/message.c +++ b/reactos/subsystems/win32/win32k/ntuser/message.c @@ -598,16 +598,10 @@ co_IntActivateWindowMouse(PUSER_MESSAGE_QUEUE ThreadQueue, LPMSG Msg, PWINDOW_OB Parent = IntGetParent(MsgWindow);//fixme: deref retval? - /* If there is no parent, do not send the WM_MOUSEACTIVATE message. Fixes Bug #3111 */ - if (!Parent) - { - co_IntMouseActivateWindow(MsgWindow); - return FALSE; - } - + /* If no parent window, pass MsgWindows HWND as wParam. Fixes bug #3111 */ Result = co_IntSendMessage(MsgWindow->hSelf, WM_MOUSEACTIVATE, - (WPARAM) (Parent ? Parent->hSelf : NULL), + (WPARAM) (Parent ? Parent->hSelf : MsgWindow->hSelf), (LPARAM)MAKELONG(*HitTest, Msg->message) );