Commit cdd7a21b authored by David Fuhrmann's avatar David Fuhrmann

macosx: fix bug which hides fspanel when video on top is enabled

close #8110
parent e553d8c4
......@@ -1626,10 +1626,13 @@ static VLCMainWindow *_o_sharedInstance = nil;
if (p_vout)
{
if( var_GetBool( p_vout, "video-on-top" ) )
[[o_video_view window] setLevel: NSStatusWindowLevel];
else
[[o_video_view window] setLevel: NSNormalWindowLevel];
if( !b_fullscreen )
{
if( var_GetBool( p_vout, "video-on-top" ) )
[[o_video_view window] setLevel: NSStatusWindowLevel];
else
[[o_video_view window] setLevel: NSNormalWindowLevel];
}
vlc_object_release( p_vout );
}
}
......
......@@ -1707,6 +1707,9 @@ unsigned int CocoaKeyToVLC( unichar i_key )
- (void)setWindowLevel:(NSNumber*)state
{
if ([[VLCMainWindow sharedInstance] isFullscreen])
return;
if ([state unsignedIntValue] & VOUT_WINDOW_STATE_ABOVE)
[[[[VLCMainWindow sharedInstance] videoView] window] setLevel: NSStatusWindowLevel];
else
......
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