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 2ef0b56..3c676aa 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 );
     }
 }