[vlc-commits] macosx: hide bottom bar of main window only when really necessary

David Fuhrmann git at videolan.org
Wed Apr 3 18:41:34 CEST 2013


vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Wed Apr  3 18:35:24 2013 +0200| [d6d1a241f125c8b56c97c5a8a1533093f28ff390] | committer: David Fuhrmann

macosx: hide bottom bar of main window only when really necessary

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

 modules/gui/macosx/MainWindow.m |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m
index c6c1d7b..2479f11 100644
--- a/modules/gui/macosx/MainWindow.m
+++ b/modules/gui/macosx/MainWindow.m
@@ -746,14 +746,13 @@ static VLCMainWindow *_o_sharedInstance = nil;
     }
 
     if (b_nativeFullscreenMode) {
-        if ([NSApp presentationOptions] & NSApplicationPresentationFullScreen)
+        if ([self hasActiveVideo] && [self fullscreen]) {
             [[o_controls_bar bottomBarView] setHidden: b_videoPlayback];
-        else
-            [[o_controls_bar bottomBarView] setHidden: NO];
-        if (b_videoPlayback && b_fullscreen)
             [o_fspanel setActive: nil];
-        if (!b_videoPlayback)
+        } else {
+            [[o_controls_bar bottomBarView] setHidden: NO];
             [o_fspanel setNonActive: nil];
+        }
     }
 }
 



More information about the vlc-commits mailing list