[vlc-commits] commit: Always re-arm the cursor hide timeout on movement (fixes: #3915) ( Rémi Denis-Courmont )

git at videolan.org git at videolan.org
Sat Jul 17 12:49:40 CEST 2010


vlc/vlc-1.1 | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jul 17 13:32:13 2010 +0300| [aafcfdc346fae4e073e609e0892f3914051856ac] | committer: Rémi Denis-Courmont 

Always re-arm the cursor hide timeout on movement (fixes: #3915)

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.
(cherry picked from commit ac6b127e2eabcda70a86d94c6ebfc7df9de3dbe6)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=aafcfdc346fae4e073e609e0892f3914051856ac
---

 src/video_output/display.c |   15 ++++++---------
 1 files changed, 6 insertions(+), 9 deletions(-)

diff --git a/src/video_output/display.c b/src/video_output/display.c
index ada7a73..99f548a 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -459,15 +459,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:



More information about the vlc-commits mailing list