Module: wine Branch: master Commit: 94e08ec5bea2bdb6ceafbdbba3a350ad9aea726b URL: http://source.winehq.org/git/wine.git/?a=commit;h=94e08ec5bea2bdb6ceafbdbba3...
Author: Vitaliy Margolen wine-patches@kievinfo.com Date: Sun Jul 22 22:17:09 2007 -0600
dinput: Use more messages as a possible indication of the foreground window changes.
---
dlls/dinput/dinput_main.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/dinput/dinput_main.c b/dlls/dinput/dinput_main.c index 4f15c58..9562d78 100644 --- a/dlls/dinput/dinput_main.c +++ b/dlls/dinput/dinput_main.c @@ -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();