[vlc-commits] macosx: fixed crash when closing the main window while using Lion' s native fullscreen mode
Felix Paul Kühne
git at videolan.org
Fri Dec 23 00:46:10 CET 2011
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Fri Dec 23 00:45:54 2011 +0100| [37c1667dd5022a3404775ee7657412e000462807] | committer: Felix Paul Kühne
macosx: fixed crash when closing the main window while using Lion's native fullscreen mode
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=37c1667dd5022a3404775ee7657412e000462807
---
modules/gui/macosx/MainWindow.m | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m
index fed5949..cbffe17 100644
--- a/modules/gui/macosx/MainWindow.m
+++ b/modules/gui/macosx/MainWindow.m
@@ -1184,7 +1184,8 @@ static VLCMainWindow *_o_sharedInstance = nil;
[o_fullscreen_btn setState: NO];
/* We always try to do so */
- [NSScreen unblackoutScreens];
+ if (!(OSX_LION && b_nativeFullscreenMode))
+ [NSScreen unblackoutScreens];
vout_thread_t *p_vout = getVout();
if (p_vout)
{
@@ -1347,10 +1348,11 @@ static VLCMainWindow *_o_sharedInstance = nil;
- (void)orderOut: (id)sender
{
- [super orderOut: sender];
-
/* Make sure we leave fullscreen */
- [self leaveFullscreenAndFadeOut: YES];
+ if (!(OSX_LION && b_nativeFullscreenMode))
+ [self leaveFullscreenAndFadeOut: YES];
+
+ [super orderOut: sender];
}
- (void)makeKeyAndOrderFront: (id)sender
More information about the vlc-commits
mailing list