[vlc-commits] display: always compute mouse hide timeout

Rémi Denis-Courmont git at videolan.org
Sun Aug 6 22:25:45 CEST 2017


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Aug  6 22:59:25 2017 +0300| [758adf9e48d9f268fa78784c8094af8ab836cda2] | committer: Jean-Baptiste Kempf

display: always compute mouse hide timeout

Cursor management should eventually be moved from display to the window.
(The video output core still needs to take care of the window to video
translation, and the mouse event filtering, as it already does.)
And cursor hiding should be left entirely within the window plugins.

But in the mean time, compute the correct timestamps regardless of the
cursor hiding support in display plugin, so that it also works if the
cursor is hidden by the window plugin.

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

 src/video_output/display.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/video_output/display.c b/src/video_output/display.c
index 2d91dad1a4..67b841c948 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -566,8 +566,7 @@ static void VoutDisplayEventMouse(vout_display_t *vd, int event, va_list args)
 
     /* */
     osys->mouse.ch_activity = true;
-    if (!vd->info.has_hide_mouse)
-        osys->mouse.last_moved = mdate();
+    osys->mouse.last_moved = mdate();
 
     /* */
     vout_SendDisplayEventMouse(osys->vout, &m);



More information about the vlc-commits mailing list