From e7cc4aa9742a389cdf772eaffdfff40e4efc0f0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Wed, 18 Feb 2004 18:12:09 +0000 Subject: [PATCH] One more bug in clientArea(). svn path=/trunk/kdebase/kwin/; revision=289117 --- geometry.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/geometry.cpp b/geometry.cpp index e51020ac4c..526cabafa5 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -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; }