x11drv: Mouse lag mystery solved!

Vitaliy Margolen wine-patch at kievinfo.com
Mon Oct 24 01:12:43 CDT 2005


Yet another one-liner!

Vitaliy Margolen

changelog:
  dlls/x11drv/mouse.c
  - Fix bad mouse lag in games that do their own mouse warping.
-------------- next part --------------
Index: dlls/x11drv/mouse.c
===================================================================
RCS file: /home/wine/wine/dlls/x11drv/mouse.c,v
retrieving revision 1.25
diff -u -p -r1.25 mouse.c
--- dlls/x11drv/mouse.c	16 Aug 2005 16:02:45 -0000	1.25
+++ dlls/x11drv/mouse.c	24 Oct 2005 06:09:35 -0000
@@ -697,6 +697,12 @@ BOOL X11DRV_SetCursorPos( INT x, INT y )
 
     wine_tsx11_lock();
     XWarpPointer( display, root_window, root_window, 0, 0, 0, 0, x, y );
+    /*
+     * This is here to avoid bad mouse lag in games that do their own mouse
+     * warping. Please DO NOT remove!
+     */
+    XFlush( display );
+
     cursor_pos.x = x;
     cursor_pos.y = y;
     wine_tsx11_unlock();


More information about the wine-patches mailing list