[vlc-commits] macosx: do not handle triple clicks explicitely

David Fuhrmann git at videolan.org
Tue Mar 25 21:47:23 CET 2014


vlc/vlc-2.1 | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Tue Mar 25 19:05:23 2014 +0100| [2b2d05640628d4ee5a70c1b0259e9d4aa25e774c] | committer: David Fuhrmann

macosx: do not handle triple clicks explicitely

refs #11061

(cherry picked from commit c877b353969c78b7e98b71a8e5cdf0013ec03826)
Signed-off-by: David Fuhrmann <david.fuhrmann at googlemail.com>

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

 modules/gui/macosx/VideoView.m |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/gui/macosx/VideoView.m b/modules/gui/macosx/VideoView.m
index 6e2ebbe..c368a20 100644
--- a/modules/gui/macosx/VideoView.m
+++ b/modules/gui/macosx/VideoView.m
@@ -153,8 +153,9 @@
 - (void)mouseDown:(NSEvent *)o_event
 {
     if (([o_event type] == NSLeftMouseDown) && (! ([o_event modifierFlags] &  NSControlKeyMask))) {
-        if ([o_event clickCount] > 1)
+        if ([o_event clickCount] == 2)
             [[VLCCoreInteraction sharedInstance] toggleFullscreen];
+
     } else if (([o_event type] == NSRightMouseDown) ||
                (([o_event type] == NSLeftMouseDown) &&
                ([o_event modifierFlags] &  NSControlKeyMask)))



More information about the vlc-commits mailing list