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

David Fuhrmann git at videolan.org
Fri May 11 17:32:38 CEST 2012


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

macosx: only show fullscreen when mouse moves inside window
(cherry picked from commit da65be4390a8cbe466840f76d13965a4893bbd7a)

Signed-off-by: David Fuhrmann <david.fuhrmann at googlemail.com>

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

 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