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
...@@ -1625,11 +1625,14 @@ static VLCMainWindow *_o_sharedInstance = nil; ...@@ -1625,11 +1625,14 @@ static VLCMainWindow *_o_sharedInstance = nil;
[[o_video_view window] setAlphaValue: config_GetFloat( VLCIntf, "macosx-opaqueness" )]; [[o_video_view window] setAlphaValue: config_GetFloat( VLCIntf, "macosx-opaqueness" )];
if (p_vout) if (p_vout)
{
if( !b_fullscreen )
{ {
if( var_GetBool( p_vout, "video-on-top" ) ) if( var_GetBool( p_vout, "video-on-top" ) )
[[o_video_view window] setLevel: NSStatusWindowLevel]; [[o_video_view window] setLevel: NSStatusWindowLevel];
else else
[[o_video_view window] setLevel: NSNormalWindowLevel]; [[o_video_view window] setLevel: NSNormalWindowLevel];
}
vlc_object_release( p_vout ); vlc_object_release( p_vout );
} }
} }
......
...@@ -1707,6 +1707,9 @@ unsigned int CocoaKeyToVLC( unichar i_key ) ...@@ -1707,6 +1707,9 @@ unsigned int CocoaKeyToVLC( unichar i_key )
- (void)setWindowLevel:(NSNumber*)state - (void)setWindowLevel:(NSNumber*)state
{ {
if ([[VLCMainWindow sharedInstance] isFullscreen])
return;
if ([state unsignedIntValue] & VOUT_WINDOW_STATE_ABOVE) if ([state unsignedIntValue] & VOUT_WINDOW_STATE_ABOVE)
[[[[VLCMainWindow sharedInstance] videoView] window] setLevel: NSStatusWindowLevel]; [[[[VLCMainWindow sharedInstance] videoView] window] setLevel: NSStatusWindowLevel];
else 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