]> git.sesse.net Git - vlc/commitdiff
Qt4: avoid transient window glitch when leaving full-screen
authorRémi Denis-Courmont <remi@remlab.net>
Wed, 12 Aug 2009 20:36:32 +0000 (23:36 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Wed, 12 Aug 2009 20:36:32 +0000 (23:36 +0300)
Pointed-out-by: Jean-Baptiste Kempf
modules/gui/qt4/components/interface_widgets.cpp

index 2ef0b56741bb50df05ddcd4c61fc8fedd98a4024..3c676aa234baf64dc01e6f831fe39d85da456a74 100644 (file)
@@ -168,14 +168,14 @@ void VideoWidget::SetFullScreen( bool b_fs )
 
     if( b_fs )
     {   /* Go full-screen */
-        reparentable->setParent( NULL );
         reparentable->setWindowState( newstate );
+        reparentable->setParent( NULL );
         reparentable->show();
     }
     else
     {   /* Go windowed */
-        reparentable->setWindowState( newstate );
         layout->addWidget( reparentable );
+        reparentable->setWindowState( newstate );
     }
 }