[vlc-commits] macosx: make sure that the bottombar controls don't	respond in Lion' s native fullscreen mode (fixes #5799)
    Felix Paul Kühne 
    git at videolan.org
       
    Sat Jan  7 18:03:25 CET 2012
    
    
  
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sat Jan  7 18:02:19 2012 +0100| [bf2aac7578db445855c33537ff4207138214dffd] | committer: Felix Paul Kühne
macosx: make sure that the bottombar controls don't respond in Lion's native fullscreen mode (fixes #5799)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bf2aac7578db445855c33537ff4207138214dffd
---
 modules/gui/macosx/MainWindow.m |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m
index 0682b45..69203dd 100644
--- a/modules/gui/macosx/MainWindow.m
+++ b/modules/gui/macosx/MainWindow.m
@@ -1126,7 +1126,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
     }
     if( OSX_LION && b_nativeFullscreenMode )
     {
-        if( [NSApp presentationOptions] == NSApplicationPresentationFullScreen )
+        if( [NSApp presentationOptions] & NSApplicationPresentationFullScreen )
             [o_bottombar_view setHidden: b_videoPlayback];
         else
             [o_bottombar_view setHidden: NO];
@@ -1704,6 +1704,9 @@ static VLCMainWindow *_o_sharedInstance = nil;
         winrect.size.height = winrect.size.height + f_titleBarHeight;
         [o_split_view setFrame: winrect];
     }
+
+    if ([[VLCMain sharedInstance] activeVideoPlayback])
+        [o_bottombar_view setHidden: YES];
 }
 
 - (void)windowWillExitFullScreen:(NSNotification *)notification
@@ -1730,6 +1733,9 @@ static VLCMainWindow *_o_sharedInstance = nil;
         [o_split_view setFrame: winrect];
         [o_video_view setFrame: winrect];
     }
+
+    if ([[VLCMain sharedInstance] activeVideoPlayback])
+        [o_bottombar_view setHidden: NO];
 }
 
 #pragma mark -
    
    
More information about the vlc-commits
mailing list