[vlc-commits] macosx: make sure that the non-native fullscreen mode is correctly left when a clip is over
Felix Paul Kühne
git at videolan.org
Sat Jan 21 00:13:36 CET 2012
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Fri Jan 20 11:57:03 2012 -0800| [9266718f657569e30e348564d37f90fdee297d36] | committer: Felix Paul Kühne
macosx: make sure that the non-native fullscreen mode is correctly left when a clip is over
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9266718f657569e30e348564d37f90fdee297d36
---
modules/gui/macosx/MainWindow.m | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m
index 4f072f3..568eb4a 100644
--- a/modules/gui/macosx/MainWindow.m
+++ b/modules/gui/macosx/MainWindow.m
@@ -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];
More information about the vlc-commits
mailing list