summaryrefslogtreecommitdiffstats
path: root/kwin
diff options
context:
space:
mode:
Diffstat (limited to 'kwin')
-rw-r--r--kwin/workspace.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/kwin/workspace.cpp b/kwin/workspace.cpp
index 2bf94c9a5..e04f0590d 100644
--- a/kwin/workspace.cpp
+++ b/kwin/workspace.cpp
@@ -1568,7 +1568,7 @@ void Workspace::setActiveScreenMouse( QPoint mousepos )
QRect Workspace::screenGeometry( int screen ) const
{
- if( !options->xineramaEnabled )
+ if (( !options->xineramaEnabled ) || (kapp->desktop()->numScreens() < 2))
return qApp->desktop()->geometry();
return qApp->desktop()->screenGeometry( screen );
}