[vlc-commits] caopengllayer: add support for hiding the mouse cursor

Felix Paul Kühne git at videolan.org
Wed Apr 23 16:50:37 CEST 2014


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Wed Apr 23 15:43:25 2014 +0200| [5b9551f561b6e62c966ecbc32e0424a254754265] | committer: Felix Paul Kühne

caopengllayer: add support for hiding the mouse cursor

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

 modules/video_output/caopengllayer.m |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/modules/video_output/caopengllayer.m b/modules/video_output/caopengllayer.m
index 0f307e5..62b82f6 100644
--- a/modules/video_output/caopengllayer.m
+++ b/modules/video_output/caopengllayer.m
@@ -188,7 +188,7 @@ static int Open (vlc_object_t *p_this)
     /* setup vout display */
     vout_display_info_t info = vd->info;
     info.subpicture_chromas = subpicture_chromas;
-    info.has_hide_mouse = false;
+    info.has_hide_mouse = true;
     vd->info = info;
 
     vd->pool    = Pool;
@@ -323,6 +323,12 @@ static int Control (vout_display_t *vd, int query, va_list ap)
             return VLC_SUCCESS;
         }
 
+        case VOUT_DISPLAY_HIDE_MOUSE:
+        {
+            [NSCursor setHiddenUntilMouseMoves: YES];
+            return VLC_SUCCESS;
+        }
+
         case VOUT_DISPLAY_GET_OPENGL:
         {
             vlc_gl_t **gl = va_arg (ap, vlc_gl_t **);



More information about the vlc-commits mailing list