From 67c028208721e4d1043ab0c346e36200eda1599f Mon Sep 17 00:00:00 2001 From: George Staikos Date: Tue, 18 Feb 2003 05:12:11 +0000 Subject: [PATCH] one more place where we weren't obeying settings svn path=/trunk/kdebase/kwin/; revision=207612 --- workspace.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/workspace.cpp b/workspace.cpp index ea1ecc5717..ad7092b235 100644 --- a/workspace.cpp +++ b/workspace.cpp @@ -4168,8 +4168,14 @@ QRect Workspace::clientArea(const QPoint& p, int desktop) { if( desktop == NETWinInfo::OnAllDesktops ) desktop = currentDesktop(); - int screenNum = QApplication::desktop()->screenNumber(p); - QRect rect = QApplication::desktop()->screenGeometry(screenNum); + + QRect rect; + if (options->xineramaPlacementEnabled) { + int screenNum = QApplication::desktop()->screenNumber(p); + rect = QApplication::desktop()->screenGeometry(screenNum); + } else { + rect = QApplication::desktop()->geometry(); + } if (d->workarea[ desktop ].isNull()) return rect;