From: Felix Paul Kühne Date: Mon, 12 May 2008 16:39:56 +0000 (+0200) Subject: Make sure the window is set to a normal level before going to fullscreen. X-Git-Tag: 0.9.0-test0~968 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=f5f7c36c4351a71129e4d2f6e6a1d03823387713;p=vlc 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. --- 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]; }