one more place where we weren't obeying settings

svn path=/trunk/kdebase/kwin/; revision=207612
icc-effect-5.14.5
George Staikos 2003-02-18 05:12:11 +00:00
parent 33c578ef0c
commit 67c0282087
1 changed files with 8 additions and 2 deletions

View File

@ -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;