mirror of
https://github.com/reactos/reactos.git
synced 2025-08-08 19:13:17 +00:00
[win32k]
-Fix sending WM_KILLFOCUS when we give focus to a window of a different thread Fixes bugs 1546 and 1603 svn path=/trunk/; revision=47103
This commit is contained in:
parent
79121eccea
commit
e3ce00b76b
1 changed files with 1 additions and 3 deletions
|
@ -227,6 +227,7 @@ co_IntSetForegroundAndFocusWindow(PWINDOW_OBJECT Window, PWINDOW_OBJECT FocusWin
|
||||||
if (PrevForegroundQueue != 0)
|
if (PrevForegroundQueue != 0)
|
||||||
{
|
{
|
||||||
hWndPrev = PrevForegroundQueue->ActiveWindow;
|
hWndPrev = PrevForegroundQueue->ActiveWindow;
|
||||||
|
hWndFocusPrev = PrevForegroundQueue->FocusWindow;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hWndPrev == hWnd)
|
if (hWndPrev == hWnd)
|
||||||
|
@ -235,9 +236,6 @@ co_IntSetForegroundAndFocusWindow(PWINDOW_OBJECT Window, PWINDOW_OBJECT FocusWin
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
hWndFocusPrev = (PrevForegroundQueue == FocusWindow->pti->MessageQueue
|
|
||||||
? FocusWindow->pti->MessageQueue->FocusWindow : NULL);
|
|
||||||
|
|
||||||
/* FIXME: Call hooks. */
|
/* FIXME: Call hooks. */
|
||||||
|
|
||||||
co_IntSendDeactivateMessages(hWndPrev, hWnd);
|
co_IntSendDeactivateMessages(hWndPrev, hWnd);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue