[vlc-commits] macosx: fixed missing menubar on Lion when entering fullscreen mode through a VLC internal trigger (fixes #5537)

Felix Paul Kühne git at videolan.org
Wed Dec 21 02:30:25 CET 2011


vlc/vlc-1.2 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Tue Dec 20 21:53:56 2011 +0100| [1ed411ae38e63ac21c8afe0fda28b36bcfa82f39] | committer: Jean-Baptiste Kempf

macosx: fixed missing menubar on Lion when entering fullscreen mode through a VLC internal trigger (fixes #5537)
(cherry picked from commit f004bad2b2e87a5afff86f6e8676cf856c706bf5)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/gui/macosx/intf.m |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 1dea43e..8030a63 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -1334,7 +1334,7 @@ unsigned int CocoaKeyToVLC( unichar i_key )
     {
         [o_mainwindow toggleFullScreen: self];
         if(b_fullscreen)
-            [NSApp setPresentationOptions:(NSApplicationPresentationFullScreen)];
+            [NSApp setPresentationOptions:(NSApplicationPresentationFullScreen | NSApplicationPresentationAutoHideDock | NSApplicationPresentationAutoHideMenuBar)];
         else
             [NSApp setPresentationOptions:(NSApplicationPresentationDefault)];
     }



More information about the vlc-commits mailing list