Commit 0485b8df authored by Benjamin Pracht's avatar Benjamin Pracht

* Fix always on top when exiting fullscreen

parent 854c0421
...@@ -772,6 +772,13 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, ...@@ -772,6 +772,13 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
frame: s_arg_frame]; frame: s_arg_frame];
[self updateTitle]; [self updateTitle];
[view setFrame: [self frame]]; [view setFrame: [self frame]];
if( var_GetBool( p_real_vout, "video-on-top" ) )
{
[o_window setLevel: NSStatusWindowLevel];
}
[o_window setAcceptsMouseMovedEvents: TRUE]; [o_window setAcceptsMouseMovedEvents: TRUE];
return b_return; return b_return;
} }
...@@ -853,6 +860,12 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, ...@@ -853,6 +860,12 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
o_window = [self window]; o_window = [self window];
[o_window makeKeyAndOrderFront: self]; [o_window makeKeyAndOrderFront: self];
[o_window setAcceptsMouseMovedEvents: TRUE]; [o_window setAcceptsMouseMovedEvents: TRUE];
if( var_GetBool( p_real_vout, "video-on-top" ) )
{
[o_window setLevel: NSStatusWindowLevel];
}
[view setFrameSize: [self frame].size]; [view setFrameSize: [self frame].size];
} }
return b_return; return b_return;
...@@ -1057,11 +1070,6 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, ...@@ -1057,11 +1070,6 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
[self setAlphaValue: var_GetFloat( p_vout, "macosx-opaqueness" )]; [self setAlphaValue: var_GetFloat( p_vout, "macosx-opaqueness" )];
if( var_GetBool( p_real_vout, "video-on-top" ) )
{
[self setLevel: NSStatusWindowLevel];
}
if( !s_frame ) if( !s_frame )
{ {
[self center]; [self center];
......
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