dinput: Use more messages as a possible indication of the foreground window changes.

This commit is contained in:
Vitaliy Margolen 2007-07-22 22:17:09 -06:00 committed by Alexandre Julliard
parent 818051de2c
commit 94e08ec5be
1 changed files with 2 additions and 1 deletions

View File

@ -854,7 +854,8 @@ static LRESULT CALLBACK callwndproc_proc( int code, WPARAM wparam, LPARAM lparam
IDirectInputImpl *dinput;
HWND foreground;
if (code != HC_ACTION || msg->message != WM_KILLFOCUS)
if (code != HC_ACTION || (msg->message != WM_KILLFOCUS &&
msg->message != WM_ACTIVATEAPP && msg->message != WM_ACTIVATE))
return CallNextHookEx( 0, code, wparam, lparam );
foreground = GetForegroundWindow();