]> git.sesse.net Git - vlc/commitdiff
Always re-arm the cursor hide timeout on movement (fixes: #3915)
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 17 Jul 2010 10:32:13 +0000 (13:32 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 17 Jul 2010 10:32:13 +0000 (13:32 +0300)
At least with X11, the mouse may move without changing coordinates.
We need to re-arm the cursor hide timeout since the cursor was shown.

src/video_output/display.c

index 4749eb2889c737a80dbeb900ddf843ae23ded864..3e91c6f87647d73d1eeec53475253dc280208fb2 100644 (file)
@@ -466,15 +466,12 @@ static void VoutDisplayEventMouse(vout_display_t *vd, int event, va_list args)
     case VOUT_DISPLAY_EVENT_MOUSE_MOVED: {
         const int x = (int)va_arg(args, int);
         const int y = (int)va_arg(args, int);
-        if (x != osys->mouse.state.i_x || y != osys->mouse.state.i_y) {
-            //msg_Dbg(vd, "VoutDisplayEvent 'mouse' @%d,%d", x, y);
 
-            m.i_x = x;
-            m.i_y = y;
-            m.b_double_click = false;
-        } else {
-            is_ignored = true;
-        }
+        //msg_Dbg(vd, "VoutDisplayEvent 'mouse' @%d,%d", x, y);
+
+        m.i_x = x;
+        m.i_y = y;
+        m.b_double_click = false;
         break;
     }
     case VOUT_DISPLAY_EVENT_MOUSE_PRESSED: