Commit 304a1c0a authored by David Fuhrmann's avatar David Fuhrmann

macosx vout: don't reset window state on close here

parent d781f87d
......@@ -1807,6 +1807,9 @@ static VLCMainWindow *_o_sharedInstance = nil;
[self makeFirstResponder: nil];
[o_detached_video_window orderOut: nil];
if( [self level] != NSNormalWindowLevel )
[self setLevel: NSNormalWindowLevel];
// restore alpha value to 1 for the case that macosx-opaqueness is set to < 1
[self setAlphaValue:1.0];
}
......
......@@ -268,9 +268,6 @@ void Close (vlc_object_t *this)
vout_display_t *vd = (vout_display_t *)this;
vout_display_sys_t *sys = vd->sys;
if ([[sys->glView window] level] != NSNormalWindowLevel)
[[sys->glView window] setLevel: NSNormalWindowLevel];
[sys->glView setVoutDisplay:nil];
var_Destroy (vd, "drawable-nsobject");
......
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