]> git.sesse.net Git - vlc/commitdiff
macosx: hide bottom bar of main window only when really necessary
authorDavid Fuhrmann <david.fuhrmann@googlemail.com>
Wed, 3 Apr 2013 16:35:24 +0000 (18:35 +0200)
committerDavid Fuhrmann <david.fuhrmann@googlemail.com>
Wed, 3 Apr 2013 16:39:49 +0000 (18:39 +0200)
modules/gui/macosx/MainWindow.m

index c6c1d7be14cbce42382121726fb9e53ad77caac2..2479f110c679df420b09ebd562ec5dbaaa143e4d 100644 (file)
@@ -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];
+        }
     }
 }