[ros-diffs] [gadamopoulos] 47103: [win32k] -Fix sending WM_KILLFOCUS when we give focus to a window of a different thread Fixes bugs 1546 and 1603

gadamopoulos at svn.reactos.org gadamopoulos at svn.reactos.org
Wed May 5 12:08:24 CEST 2010


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/ntuser/focus.c?rev=47103&r1=47102&r2=47103&view=diff
==============================================================================
--- 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. */
 




More information about the Ros-diffs mailing list