From bc92849c38185b1657ee36e464dab8362d85b0af Mon Sep 17 00:00:00 2001 From: Giannis Adamopoulos Date: Fri, 18 Feb 2011 16:28:52 +0000 Subject: [PATCH] [win32k] - Fix a bug that caused problems when the user clicks in the caption of a window to activate it svn path=/trunk/; revision=50807 --- reactos/subsystems/win32/win32k/ntuser/msgqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/subsystems/win32/win32k/ntuser/msgqueue.c b/reactos/subsystems/win32/win32k/ntuser/msgqueue.c index 6947db56004..36ac945fb74 100644 --- a/reactos/subsystems/win32/win32k/ntuser/msgqueue.c +++ b/reactos/subsystems/win32/win32k/ntuser/msgqueue.c @@ -1093,7 +1093,7 @@ BOOL co_IntProcessMouseMessage(MSG* msg, BOOL* RemoveMessages, UINT first, UINT /* Activate the window if needed */ - if (msg->hwnd != MessageQueue->ActiveWindow) + if (msg->hwnd != UserGetForegroundWindow()) { PWND pwndTop = pwndMsg; while (pwndTop)