From: RĂ©mi Denis-Courmont Date: Wed, 12 Aug 2009 20:36:32 +0000 (+0300) Subject: Qt4: avoid transient window glitch when leaving full-screen X-Git-Tag: 1.1.0-ff~4427 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=ad8f9a79efaf35df91a2c1a0f81d2eef98d34103;p=vlc Qt4: avoid transient window glitch when leaving full-screen Pointed-out-by: Jean-Baptiste Kempf --- diff --git a/modules/gui/qt4/components/interface_widgets.cpp b/modules/gui/qt4/components/interface_widgets.cpp index 2ef0b56741..3c676aa234 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 ); } }