Commit d357698c authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: Do not try to move when going to fullscreen if you have only 1 screen.

parent c0b23282
......@@ -614,7 +614,11 @@ void MainInterface::setVideoFullScreen( bool fs )
QRect screenres = QApplication::desktop()->screenGeometry( numscreen );
/* To be sure window is on proper-screen in xinerama */
#if HAS_QT46
if( !screenres.contains( pos() ) && QApplication::desktop()->screenCount() > 1 )
#else
if( !screenres.contains( pos() ) )
#endif
{
msg_Dbg( p_intf, "Moving video to correct screen");
move( QPoint( screenres.x(), screenres.y() ) );
......
......@@ -44,6 +44,7 @@
#endif
#define HAS_QT45 ( QT_VERSION >= 0x040500 )
#define HAS_QT46 ( QT_VERSION >= 0x040600 )
enum {
DialogEventType = 0,
......
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