[vlc-devel] commit: Qt4: avoid transient window glitch when leaving full-screen ( Rémi Denis-Courmont )

git version control git at videolan.org
Wed Aug 12 22:37:12 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Aug 12 23:36:32 2009 +0300| [ad8f9a79efaf35df91a2c1a0f81d2eef98d34103] | committer: Rémi Denis-Courmont 

Qt4: avoid transient window glitch when leaving full-screen

Pointed-out-by: Jean-Baptiste Kempf

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ad8f9a79efaf35df91a2c1a0f81d2eef98d34103
---

 modules/gui/qt4/components/interface_widgets.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp
index 2ef0b56..3c676aa 100644
--- a/modules/gui/qt4/components/interface_widgets.cpp
+++ b/modules/gui/qt4/components/interface_widgets.cpp
@@ -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 );
     }
 }
 




More information about the vlc-devel mailing list