mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 21:20:25 +00:00
Threads without active or focus window should not receive keyboard
messages.
This commit is contained in:
parent
c19e1a7e19
commit
553e3c98d1
@ -382,7 +382,9 @@ static DWORD MSG_TranslateKbdMsg( HWND hTopWnd, DWORD first, DWORD last,
|
|||||||
if( message < WM_SYSKEYDOWN )
|
if( message < WM_SYSKEYDOWN )
|
||||||
message += WM_SYSKEYDOWN - WM_KEYDOWN;
|
message += WM_SYSKEYDOWN - WM_KEYDOWN;
|
||||||
}
|
}
|
||||||
|
if ( !hWnd ) return SYSQ_MSG_ABANDON;
|
||||||
pWnd = WIN_FindWndPtr( hWnd );
|
pWnd = WIN_FindWndPtr( hWnd );
|
||||||
|
|
||||||
if (pWnd && (pWnd->hmemTaskQ != GetFastQueue16()))
|
if (pWnd && (pWnd->hmemTaskQ != GetFastQueue16()))
|
||||||
{
|
{
|
||||||
/* Not for the current task */
|
/* Not for the current task */
|
||||||
|
Loading…
Reference in New Issue
Block a user