[vlc-commits] macosx: workaround for lion fullscreen behaviour at startup (refs #6668)
David Fuhrmann
git at videolan.org
Mon Apr 23 16:43:54 CEST 2012
vlc/vlc-2.0 | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Sun Apr 22 13:40:16 2012 +0200| [3922b615aa750963ce9ee9b20c040208b78562c6] | committer: David Fuhrmann
macosx: workaround for lion fullscreen behaviour at startup (refs #6668)
(cherry picked from commit 8d9646c187862a9816c943fdc42742e84ec236e7)
Signed-off-by: David Fuhrmann <david.fuhrmann at googlemail.com>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=3922b615aa750963ce9ee9b20c040208b78562c6
---
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 39dffa2..dd36138 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's 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