]> git.sesse.net Git - vlc/commitdiff
Fixed qt4 fullscreen behaviour with multiple monitors (win32 and linux).
authorLaurent Aimar <fenrir@videolan.org>
Tue, 27 Apr 2010 22:48:18 +0000 (00:48 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Tue, 27 Apr 2010 22:49:06 +0000 (00:49 +0200)
modules/gui/qt4/components/interface_widgets.cpp

index 05394241fe1c52980a4d16d88d8861486e703c0f..ef729f2bb420d17586de8f93f357f821b214ccda 100644 (file)
@@ -215,14 +215,14 @@ void VideoWidget::SetFullScreen( bool b_fs )
 
         QRect screenres = QApplication::desktop()->screenGeometry( numscreen );
 
-        reparentable->setParent( NULL, newflags );
-        reparentable->setWindowState( newstate );
         /* To be sure window is on proper-screen in xinerama */
         if( !screenres.contains( reparentable->pos() ) )
         {
             msg_Dbg( p_intf, "Moving video to correct screen");
             reparentable->move( QPoint( screenres.x(), screenres.y() ) );
         }
+        reparentable->setParent( NULL, newflags );
+        reparentable->setWindowState( newstate );
         reparentable->show();
     }
     else