Commit ad8f9a79 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Qt4: avoid transient window glitch when leaving full-screen

Pointed-out-by: Jean-Baptiste Kempf
parent 5b2d9a63
...@@ -168,14 +168,14 @@ void VideoWidget::SetFullScreen( bool b_fs ) ...@@ -168,14 +168,14 @@ void VideoWidget::SetFullScreen( bool b_fs )
if( b_fs ) if( b_fs )
{ /* Go full-screen */ { /* Go full-screen */
reparentable->setParent( NULL );
reparentable->setWindowState( newstate ); reparentable->setWindowState( newstate );
reparentable->setParent( NULL );
reparentable->show(); reparentable->show();
} }
else else
{ /* Go windowed */ { /* Go windowed */
reparentable->setWindowState( newstate );
layout->addWidget( reparentable ); layout->addWidget( reparentable );
reparentable->setWindowState( newstate );
} }
} }
......
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