Commit cd0b9da9 authored by Ilkka Ollakka's avatar Ilkka Ollakka

Qt4: correct 3cddf245

restore setWindowState and setParent order
parent 753731a2
...@@ -180,8 +180,8 @@ void VideoWidget::SetFullScreen( bool b_fs ) ...@@ -180,8 +180,8 @@ void VideoWidget::SetFullScreen( bool b_fs )
int numscreen = QApplication::desktop()->screenNumber( p_intf->p_sys->p_mi ); int numscreen = QApplication::desktop()->screenNumber( p_intf->p_sys->p_mi );
QRect screenres = QApplication::desktop()->screenGeometry( numscreen ); QRect screenres = QApplication::desktop()->screenGeometry( numscreen );
reparentable->setParent( NULL );
reparentable->setWindowState( newstate ); reparentable->setWindowState( newstate );
reparentable->setParent( NULL );
reparentable->setWindowFlags( newflags ); reparentable->setWindowFlags( newflags );
/* To be sure window is on proper-screen in xinerama */ /* To be sure window is on proper-screen in xinerama */
if( !screenres.contains( reparentable->pos() ) ) if( !screenres.contains( reparentable->pos() ) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment