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