Qt4: correct 3cddf245543afb17406a2017764d73167fa6bd86
[vlc.git] / modules / gui / qt4 / components / interface_widgets.cpp
index 9e530c1..5cf1a30 100644 (file)
@@ -180,8 +180,8 @@ void VideoWidget::SetFullScreen( bool b_fs )
         int numscreen = QApplication::desktop()->screenNumber( p_intf->p_sys->p_mi );
         QRect screenres = QApplication::desktop()->screenGeometry( numscreen );
 
-        reparentable->setParent( NULL );
         reparentable->setWindowState( newstate );
+        reparentable->setParent( NULL );
         reparentable->setWindowFlags( newflags );
         /* To be sure window is on proper-screen in xinerama */
         if( !screenres.contains( reparentable->pos() ) )