summaryrefslogtreecommitdiffstats
path: root/kwin
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-04-29 03:39:29 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-04-29 03:39:29 +0000
commit71519fb37e5d0794a36e28d0c6efe1d197639ccb (patch)
tree40ad972526bf79141ec23f21e6481975d67ea6b4 /kwin
parent5669b778e5426a75b50fcd63deaba022c25ab5bc (diff)
downloadtdebase-71519fb37e5d0794a36e28d0c6efe1d197639ccb.tar.gz
tdebase-71519fb37e5d0794a36e28d0c6efe1d197639ccb.zip
More display switching repairs
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1120414 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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 );
}