One more bug in clientArea().

svn path=/trunk/kdebase/kwin/; revision=289117
This commit is contained in:
Luboš Luňák 2004-02-18 18:12:09 +00:00
parent bf814c45e0
commit e7cc4aa974

View file

@ -217,11 +217,15 @@ QRect Workspace::clientArea( clientAreaOption opt, const QPoint& p, int desktop
switch (opt)
{
case MaximizeArea:
case MaximizeFullArea:
if (options->xineramaMaximizeEnabled)
return sarea;
else
return warea;
case MaximizeFullArea:
if (options->xineramaMaximizeEnabled)
return desktopwidget->screenGeometry( desktopwidget->screenNumber( p ));
else
return desktopwidget->geometry();
case PlacementArea:
if (options->xineramaPlacementEnabled)
return sarea;
@ -235,7 +239,7 @@ QRect Workspace::clientArea( clientAreaOption opt, const QPoint& p, int desktop
case WorkArea:
return warea;
case FullArea:
return QApplication::desktop()->geometry();
return desktopwidget->geometry();
case ScreenArea:
return sarea;
}