]> git.sesse.net Git - vlc/commitdiff
Make sure the window is set to a normal level before going to fullscreen.
authorFelix Paul Kühne <fkuehne@videolan.org>
Mon, 12 May 2008 16:39:56 +0000 (18:39 +0200)
committerFelix Paul Kühne <fkuehne@videolan.org>
Mon, 12 May 2008 16:40:49 +0000 (18:40 +0200)
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

index de4bd86364c6bd94713ee80bf52924cf1cd42431..e6465b5c7aa356b00070e964b20250b26b719d24 100644 (file)
@@ -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];
 }