Commit 20c4f1a9 authored by David Fuhrmann's avatar David Fuhrmann

macosx: fix closing detached windows when in lion fullscreen

parent b04f1e54
...@@ -201,18 +201,14 @@ ...@@ -201,18 +201,14 @@
if ([o_window fullscreen] && ![[VLCMainWindow sharedInstance] nativeFullscreenMode]) if ([o_window fullscreen] && ![[VLCMainWindow sharedInstance] nativeFullscreenMode])
[o_window leaveFullscreen]; [o_window leaveFullscreen];
if (![NSStringFromClass([o_window class]) isEqualToString:@"VLCMainWindow"] && [[o_window videoView] releaseVoutThread];
[o_window fullscreen] && [o_window setHasActiveVideo: NO];
[[VLCMainWindow sharedInstance] nativeFullscreenMode])
[o_window toggleFullScreen: self];
if (![NSStringFromClass([o_window class]) isEqualToString:@"VLCMainWindow"]) { if (![NSStringFromClass([o_window class]) isEqualToString:@"VLCMainWindow"]) {
[o_window close];
[o_window orderOut:self]; [o_window orderOut:self];
} }
[[o_window videoView] releaseVoutThread];
[o_window setHasActiveVideo: NO];
[o_vout_dict removeObjectForKey:o_key]; [o_vout_dict removeObjectForKey:o_key];
if ([o_vout_dict count] == 0) if ([o_vout_dict count] == 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment