]> git.sesse.net Git - vlc/commitdiff
Do not touch the always-on-top when going fullscreen
authorRafaël Carré <funman@videolan.org>
Sat, 10 May 2008 16:19:42 +0000 (18:19 +0200)
committerRafaël Carré <funman@videolan.org>
Sat, 10 May 2008 16:20:51 +0000 (18:20 +0200)
It needs to be done by the GUI only

modules/video_output/msw/events.c
modules/video_output/x11/xcommon.c

index c86c2b5dd4a67bfae0fd3f6fd38f4a5157a2ba9a..2245bd6de18572312f20a4bdafd1186640475956 100644 (file)
@@ -1241,8 +1241,4 @@ void Win32ToggleFullscreen( vout_thread_t *p_vout )
     /* Update the object variable and trigger callback */
     val.b_bool = p_vout->b_fullscreen;
     var_Set( p_vout, "fullscreen", val );
-
-    /* Disable video-on-top while in fullscreen mode */
-    if( var_GetBool( p_vout, "video-on-top" ) )
-        ControlParentWindow( p_vout, VOUT_SET_STAY_ON_TOP, !val.b_bool );
 }
index b37ae25e79df60203b260edb6a77b5fe87e77d66..10acaa1b3988b65cdd6363431bd3971e15725fcf 100644 (file)
@@ -1493,17 +1493,8 @@ static int ManageVideo( vout_thread_t *p_vout )
      */
     if ( p_vout->i_changes & VOUT_FULLSCREEN_CHANGE )
     {
-        vlc_value_t val_fs, val_ontop;
-
         /* Update the object variable and trigger callback */
-        val_fs.b_bool = !p_vout->b_fullscreen;
-
-        var_Set( p_vout, "fullscreen", val_fs );
-
-        /* Disable "always on top" in fullscreen mode */
-        var_Get( p_vout, "video-on-top", &val_ontop );
-        if( val_ontop.b_bool )
-            WindowOnTop( p_vout, !val_fs.b_bool );
+        var_SetBool( p_vout, "fullscreen", !p_vout->b_fullscreen );
 
         ToggleFullScreen( p_vout );
         p_vout->i_changes &= ~VOUT_FULLSCREEN_CHANGE;