[vlc-devel] [PATCH] macosx: non-fullscreen video windows hide mouse

Aleksandr Pasechnik al at megamicron.net
Thu Apr 9 19:46:06 CEST 2015


Allow the mouse cursor to be hidden in regular active video windws, in addition
to fullscreen videos.
---
 modules/gui/macosx/Windows.m | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/gui/macosx/Windows.m b/modules/gui/macosx/Windows.m
index 331da61..89d7031 100644
--- a/modules/gui/macosx/Windows.m
+++ b/modules/gui/macosx/Windows.m
@@ -638,7 +638,7 @@
 //  Called automatically if window's acceptsMouseMovedEvents property is true
 - (void)mouseMoved:(NSEvent *)theEvent
 {
-    if (b_fullscreen)
+    if (b_fullscreen || (b_has_active_video && [self isKeyWindow]))
         [self recreateHideMouseTimer];
 
     [super mouseMoved: theEvent];
-- 
2.3.5




More information about the vlc-devel mailing list