one more place where we weren't obeying settings

svn path=/trunk/kdebase/kwin/; revision=207612
This commit is contained in:
George Staikos 2003-02-18 05:12:11 +00:00
parent 33c578ef0c
commit 67c0282087

View file

@ -4168,8 +4168,14 @@ QRect Workspace::clientArea(const QPoint& p, int desktop)
{ {
if( desktop == NETWinInfo::OnAllDesktops ) if( desktop == NETWinInfo::OnAllDesktops )
desktop = currentDesktop(); desktop = currentDesktop();
QRect rect;
if (options->xineramaPlacementEnabled) {
int screenNum = QApplication::desktop()->screenNumber(p); int screenNum = QApplication::desktop()->screenNumber(p);
QRect rect = QApplication::desktop()->screenGeometry(screenNum); rect = QApplication::desktop()->screenGeometry(screenNum);
} else {
rect = QApplication::desktop()->geometry();
}
if (d->workarea[ desktop ].isNull()) if (d->workarea[ desktop ].isNull())
return rect; return rect;