]> git.sesse.net Git - vlc/commitdiff
macosx: make sure that the non-native fullscreen mode is correctly left when a clip...
authorFelix Paul Kühne <fkuehne@videolan.org>
Fri, 20 Jan 2012 19:57:03 +0000 (11:57 -0800)
committerFelix Paul Kühne <fkuehne@videolan.org>
Fri, 20 Jan 2012 23:12:48 +0000 (15:12 -0800)
modules/gui/macosx/MainWindow.m

index 4f072f3ba6c512d5f38f4d1925d6f5cd9d83e404..568eb4a722365ac8da3b1c93cf94ac80563c8de7 100644 (file)
@@ -1219,6 +1219,9 @@ static VLCMainWindow *_o_sharedInstance = nil;
         [self makeFirstResponder: o_video_view];
     else
         [self makeFirstResponder: nil];
+
+    if (!b_videoPlayback && b_fullscreen && !b_nativeFullscreenMode)
+        [self leaveFullscreenAndFadeOut: YES];
 }
 
 - (void)resizeWindow
@@ -1547,7 +1550,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
         if (OSX_LEOPARD)
             SetSystemUIMode( kUIModeNormal, kUIOptionAutoShowMenuBar);
         else
-            [NSApp setPresentationOptions:(NSApplicationPresentationDefault)];
+            [NSApp setPresentationOptions: NSApplicationPresentationDefault];
 
         /* Will release the lock */
         [self hasEndedFullscreen];