[vlc-devel] [PATCH 08/11] caopengllayer: handle the flag in VOUT_DISPLAY_HIDE_MOUSE

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


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

diff --git a/modules/video_output/caopengllayer.m b/modules/video_output/caopengllayer.m
index 90b41f517e..37af5e4bff 100644
--- a/modules/video_output/caopengllayer.m
+++ b/modules/video_output/caopengllayer.m
@@ -369,7 +369,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