[vlc-commits] macosx: workaround for lion fullscreen behaviour at startup (refs #6668)

David Fuhrmann git at videolan.org
Sun Apr 22 13:50:37 CEST 2012


vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Sun Apr 22 13:40:16 2012 +0200| [8d9646c187862a9816c943fdc42742e84ec236e7] | committer: David Fuhrmann

macosx: workaround for lion fullscreen behaviour at startup (refs #6668)

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

 modules/gui/macosx/MainWindow.m |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m
index f159dbd..fd29130 100644
--- a/modules/gui/macosx/MainWindow.m
+++ b/modules/gui/macosx/MainWindow.m
@@ -2084,6 +2084,9 @@ static VLCMainWindow *_o_sharedInstance = nil;
 #pragma mark Lion native fullscreen handling
 - (void)windowWillEnterFullScreen:(NSNotification *)notification
 {
+    // workaround, see #6668
+    [NSApp setPresentationOptions:(NSApplicationPresentationFullScreen | NSApplicationPresentationAutoHideDock | NSApplicationPresentationAutoHideMenuBar)];
+
     var_SetBool( pl_Get( VLCIntf ), "fullscreen", true );
     
     vout_thread_t *p_vout = getVout();



More information about the vlc-commits mailing list