From f5f7c36c4351a71129e4d2f6e6a1d03823387713 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Felix=20Paul=20K=C3=BChne?= Date: Mon, 12 May 2008 18:39:56 +0200 Subject: [PATCH] Make sure the window is set to a normal level before going to fullscreen. This fixes the 'the fspanel is missing if I have always-on-top selected' bug and should also fix #1227 for OS X. This patch needs testing on a multiscreen setup before being backported. --- modules/gui/macosx/vout.m | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/gui/macosx/vout.m b/modules/gui/macosx/vout.m index de4bd86364..e6465b5c7a 100644 --- a/modules/gui/macosx/vout.m +++ b/modules/gui/macosx/vout.m @@ -770,12 +770,22 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable, - (void)enterFullscreen { + if( var_GetBool( p_real_vout, "video-on-top" ) ) + { + [o_window setLevel: NSNormalWindowLevel]; + } + [[o_view class] performSelectorOnMainThread:@selector(resetVout:) withObject:[NSValue valueWithPointer:p_vout] waitUntilDone:YES]; [[[[VLCMain sharedInstance] getControls] getFSPanel] setActive: nil]; } - (void)leaveFullscreen { + if( var_GetBool( p_real_vout, "video-on-top" ) ) + { + [o_window setLevel: NSStatusWindowLevel]; + } + [[o_view class] performSelectorOnMainThread:@selector(resetVout:) withObject:[NSValue valueWithPointer:p_vout] waitUntilDone:YES]; [[[[VLCMain sharedInstance] getControls] getFSPanel] setNonActive: nil]; } -- 2.39.2