]> git.sesse.net Git - vlc/commitdiff
Disable video-on-top on win32 when going fullscreen
authorRafaël Carré <funman@videolan.org>
Sat, 10 May 2008 12:03:40 +0000 (14:03 +0200)
committerRafaël Carré <funman@videolan.org>
Sat, 10 May 2008 12:03:40 +0000 (14:03 +0200)
Fix #1227

modules/video_output/msw/events.c

index 8cf358ba8806d522b9978f531bb90a162d68c16c..5f04f0cb23d45dc11cea7b171eac8c7aa9c79161 100644 (file)
@@ -1205,6 +1205,10 @@ void Win32ToggleFullscreen( vout_thread_t *p_vout )
 
             HWND topLevelParent = GetAncestor( p_vout->p_sys->hparent, GA_ROOT );
             ShowWindow( topLevelParent, SW_HIDE );
+
+            /* Disable "video-on-top" status for main interface if needed */
+            if( var_GetBool( p_vout, "video-on-top" ) )
+                ControlParentWindow( p_vout, VOUT_SET_STAY_ON_TOP, false );
         }
 
         SetForegroundWindow( hwnd );