[vlc-commits] macosx: removed wrong check, which could make the video output disappear when leaving fullscreen mode in rare cases (close #6856)
Felix Paul Kühne
git at videolan.org
Mon May 21 11:41:53 CEST 2012
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Mon May 21 11:39:14 2012 +0200| [7100a8c8c8ba7364d5543c13ae70040a16aee17c] | committer: Felix Paul Kühne
macosx: removed wrong check, which could make the video output disappear when leaving fullscreen mode in rare cases (close #6856)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7100a8c8c8ba7364d5543c13ae70040a16aee17c
---
modules/gui/macosx/MainWindow.m | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m
index 85e1926..b8bf392 100644
--- a/modules/gui/macosx/MainWindow.m
+++ b/modules/gui/macosx/MainWindow.m
@@ -2255,13 +2255,10 @@ static VLCMainWindow *_o_sharedInstance = nil;
[o_video_view setFrame:[o_temp_view frame]];
if( [[o_video_view subviews] count] > 0 )
[[o_video_view window] makeFirstResponder: [[o_video_view subviews] objectAtIndex:0]];
- if( [[o_video_view window] isVisible] )
- {
- if( !b_nonembedded )
+ if( !b_nonembedded )
[super makeKeyAndOrderFront:self]; /* our version contains a workaround */
- else
- [[o_video_view window] makeKeyAndOrderFront: self];
- }
+ else
+ [[o_video_view window] makeKeyAndOrderFront: self];
[o_fullscreen_window orderOut: self];
NSEnableScreenUpdates();
More information about the vlc-commits
mailing list