]> git.sesse.net Git - vlc/commitdiff
qt4(Win32): fix fullscreen issue on Windows
authorErwan Tulou <erwan10@videolan.org>
Tue, 19 Jan 2010 19:46:42 +0000 (20:46 +0100)
committerErwan Tulou <erwan10@videolan.org>
Tue, 19 Jan 2010 20:18:36 +0000 (21:18 +0100)
On Windows, fullscreen was displayed with a frame and title.
Passing the newflags when reparenting works out the problem.
patch tested successfully on Linux and WinXP. other Win flavors to be tested

modules/gui/qt4/components/interface_widgets.cpp

index e54083675d68e50fef47726f9b46c063d16bb550..d4d33f4bad6edb99761e4346673690e8796d1c62 100644 (file)
@@ -212,9 +212,8 @@ void VideoWidget::SetFullScreen( bool b_fs )
 
         QRect screenres = QApplication::desktop()->screenGeometry( numscreen );
 
-        reparentable->setParent( NULL );
+        reparentable->setParent( NULL, newflags );
         reparentable->setWindowState( newstate );
-        reparentable->setWindowFlags( newflags );
         /* To be sure window is on proper-screen in xinerama */
         if( !screenres.contains( reparentable->pos() ) )
         {