mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 15:15:39 +00:00
dinput: Use more messages as a possible indication of the foreground window changes.
This commit is contained in:
parent
818051de2c
commit
94e08ec5be
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue