Generate a WM_MOUSEMOVE event when warping the mouse

JesusFreke jesusfreke at jesusfreke.com
Sat Oct 31 06:15:35 CDT 2009


---
 dlls/winex11.drv/mouse.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/winex11.drv/mouse.c b/dlls/winex11.drv/mouse.c
index 60351e5..7c24c64 100644
--- a/dlls/winex11.drv/mouse.c
+++ b/dlls/winex11.drv/mouse.c
@@ -1004,6 +1004,7 @@ BOOL CDECL X11DRV_SetCursorPos( INT x, INT y )
     XFlush( display ); /* avoids bad mouse lag in games that do their own mouse warping */
     cursor_pos = pt;
     wine_tsx11_unlock();
+    queue_raw_mouse_message( WM_MOUSEMOVE, NULL, x, y, 0, GetCurrentTime(), 0, 0 );
     return TRUE;
 }
 
-- 
1.6.3.3




More information about the wine-patches mailing list