From b362b980cb9d6248697c87c7630eec674d4392ef Mon Sep 17 00:00:00 2001 From: Guillaume Pothier Date: Mon, 12 Jan 2009 23:45:03 +0000 Subject: [PATCH] Fixed many Kephal bugs. BUG: 173017 svn path=/trunk/KDE/kdebase/workspace/; revision=910287 --- geometry.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/geometry.cpp b/geometry.cpp index 616d5d1a74..a8d9222995 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -209,6 +209,8 @@ void Workspace::updateClientArea( bool force ) ++it) (*it)->checkWorkspacePosition(); } + + kDebug(1212) << "Done."; } void Workspace::updateClientArea() @@ -230,7 +232,9 @@ QRect Workspace::clientArea( clientAreaOption opt, int screen, int desktop ) con desktop = currentDesktop(); if( screen == -1 ) screen = activeScreen(); - QRect sarea = !screenarea.isEmpty() // may be empty during KWin initialization + + QRect sarea = (!screenarea.isEmpty() + && screen < screenarea[ desktop ].size()) // screens may be missing during KWin initialization or screen config changes ? screenarea[ desktop ][ screen ] : Kephal::ScreenUtils::screenGeometry( screen ); QRect warea = workarea[ desktop ].isNull()