Commit 391fdb62 authored by Laurent Aimar's avatar Laurent Aimar

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

parent 5ad6c0a5
......@@ -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