[vlc-devel] [PATCH 07/11] macosx: handle the flag in VOUT_DISPLAY_HIDE_MOUSE

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


In case it's ever used.
---
 modules/video_output/macosx.m | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/video_output/macosx.m b/modules/video_output/macosx.m
index dd132fef20..fe044bbb1a 100644
--- a/modules/video_output/macosx.m
+++ b/modules/video_output/macosx.m
@@ -416,7 +416,10 @@ static int Control (vout_display_t *vd, int query, va_list ap)
 
             case VOUT_DISPLAY_HIDE_MOUSE: /* FIXME: dead code */
             {
-                [NSCursor setHiddenUntilMouseMoves: YES];
+                if (va_arg(args, int))
+                    [NSCursor hide];
+                else
+                    [NSCursor unhide];
                 return VLC_SUCCESS;
             }
 
-- 
2.12.1



More information about the vlc-devel mailing list