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

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jul 23 05:55:47 CDT 2007


Module: wine
Branch: master
Commit: 94e08ec5bea2bdb6ceafbdbba3a350ad9aea726b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=94e08ec5bea2bdb6ceafbdbba3a350ad9aea726b

Author: Vitaliy Margolen <wine-patches at 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();




More information about the wine-cvs mailing list