Commit 20256d60 authored by Laurent Aimar's avatar Laurent Aimar Committed by Jean-Baptiste Kempf

Fixed qt4 fullscreen behaviour with multiple monitors (win32 and linux).

(cherry picked from commit 391fdb6282da989042f5edc5a1bfeab3db5cc0f4)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 525fd045
......@@ -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
......
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