Author: gadamopoulos
Date: Wed May 5 12:08:23 2010
New Revision: 47103
URL:
http://svn.reactos.org/svn/reactos?rev=47103&view=rev
Log:
[win32k]
-Fix sending WM_KILLFOCUS when we give focus to a window of a different thread
Fixes bugs 1546 and 1603
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/focus.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/focus.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/focus.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/focus.c [iso-8859-1] Wed May 5 12:08:23
2010
@@ -227,6 +227,7 @@
if (PrevForegroundQueue != 0)
{
hWndPrev = PrevForegroundQueue->ActiveWindow;
+ hWndFocusPrev = PrevForegroundQueue->FocusWindow;
}
if (hWndPrev == hWnd)
@@ -234,9 +235,6 @@
DPRINT("Failed - Same\n");
return TRUE;
}
-
- hWndFocusPrev = (PrevForegroundQueue == FocusWindow->pti->MessageQueue
- ? FocusWindow->pti->MessageQueue->FocusWindow : NULL);
/* FIXME: Call hooks. */