[vlc-devel] [PATCH 10/11] display: always set VOUT_DISPLAY_HIDE_MOUSE if needs_hide_mouse is set

Steve Lhomme robux4 at videolabs.io
Tue Aug 8 15:22:30 CEST 2017


That means the vout will handle the mouse hiding on top of the GUI.

Fix #17819
---
 src/video_output/display.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/video_output/display.c b/src/video_output/display.c
index 1925e2691d..d85079cf39 100644
--- a/src/video_output/display.c
+++ b/src/video_output/display.c
@@ -756,8 +756,8 @@ bool vout_ManageDisplay(vout_display_t *vd, bool allow_reset_pictures)
 
     if (hide_mouse_changed) {
         msg_Dbg(vd, "auto %sing mouse cursor", hide_mouse?"hid":"show");
-        if (vout_HideWindowMouse(osys->vout, hide_mouse) != VLC_SUCCESS
-         && vd->info.needs_hide_mouse)
+        vout_HideWindowMouse(osys->vout, hide_mouse);
+        if (vd->info.needs_hide_mouse)
             vout_display_Control(vd, VOUT_DISPLAY_HIDE_MOUSE, hide_mouse);
     }
 
-- 
2.12.1



More information about the vlc-devel mailing list