Commit 94e08ec5 authored by Vitaliy Margolen's avatar Vitaliy Margolen Committed by Alexandre Julliard

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

parent 818051de
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment