Alexandre Julliard : x11drv: Only warp the mouse pointer if it has actually moved.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Mar 28 12:12:24 CST 2006


Module: wine
Branch: refs/heads/master
Commit: bc15e1bc8195737e0f9ddc741cf4d9e79f500c55
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=bc15e1bc8195737e0f9ddc741cf4d9e79f500c55

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Tue Mar 28 18:18:01 2006 +0200

x11drv: Only warp the mouse pointer if it has actually moved.

---

 dlls/x11drv/mouse.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/x11drv/mouse.c b/dlls/x11drv/mouse.c
index f2123c0..43b0fb4 100644
--- a/dlls/x11drv/mouse.c
+++ b/dlls/x11drv/mouse.c
@@ -289,7 +289,8 @@ void X11DRV_send_mouse_input( HWND hwnd,
     {
         queue_raw_mouse_message( WM_MOUSEMOVE, hwnd, pt.x, pt.y, data, time,
                                  extra_info, injected_flags );
-        if (injected_flags & LLMHF_INJECTED)  /* we have to actually move the cursor */
+        if ((injected_flags & LLMHF_INJECTED) &&
+            ((flags & MOUSEEVENTF_ABSOLUTE) || x || y))  /* we have to actually move the cursor */
         {
             TRACE( "warping to (%ld,%ld)\n", pt.x, pt.y );
             wine_tsx11_lock();




More information about the wine-cvs mailing list