[vlc-commits] macosx: only show fullscreen when mouse moves inside window

David Fuhrmann git at videolan.org
Mon May 7 17:10:37 CEST 2012


vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Mon May  7 17:09:06 2012 +0200| [da65be4390a8cbe466840f76d13965a4893bbd7a] | committer: David Fuhrmann

macosx: only show fullscreen when mouse moves inside window

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

 modules/gui/macosx/VideoView.m |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/modules/gui/macosx/VideoView.m b/modules/gui/macosx/VideoView.m
index 3e90d3a..d915d22 100644
--- a/modules/gui/macosx/VideoView.m
+++ b/modules/gui/macosx/VideoView.m
@@ -216,7 +216,10 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
 
 - (void)mouseMoved:(NSEvent *)o_event
 {
-    [[VLCMain sharedInstance] showFullscreenController];
+    NSPoint ml = [self convertPoint: [o_event locationInWindow] fromView: nil];
+    if( [self mouse: ml inRect: [self bounds]] )
+        [[VLCMain sharedInstance] showFullscreenController];
+
     [super mouseMoved: o_event];
 }
 



More information about the vlc-commits mailing list