[PATCH] winex11.drv: Ignore X11 MotionNotify events when XInput2 is handling input

Josef Schimke sgtcapslock at lavabit.com
Tue Jul 23 20:12:04 CDT 2013


---
 dlls/winex11.drv/mouse.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dlls/winex11.drv/mouse.c b/dlls/winex11.drv/mouse.c
index 168914f..0a9a365 100644
--- a/dlls/winex11.drv/mouse.c
+++ b/dlls/winex11.drv/mouse.c
@@ -1558,6 +1558,11 @@ void X11DRV_MotionNotify( HWND hwnd, XEvent *xev )
     XMotionEvent *event = &xev->xmotion;
     INPUT input;
 
+#ifdef HAVE_X11_EXTENSIONS_XINPUT2_H
+    if (x11drv_thread_data()->xi2_state == xi_enabled)
+        return;
+#endif
+
     TRACE( "hwnd %p/%lx pos %d,%d is_hint %d serial %lu\n",
            hwnd, event->window, event->x, event->y, event->is_hint, event->serial );
 
-- 
1.8.1.5




More information about the wine-patches mailing list