From fb1827d124b8ad020d313817d58f9e817ef4663c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Mon, 19 May 2008 21:22:06 +0000 Subject: [PATCH] Replace -1 with active screen in clientArea() if needed. svn path=/trunk/KDE/kdebase/workspace/; revision=810009 --- geometry.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/geometry.cpp b/geometry.cpp index a8f2221a27..73773a394a 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -225,6 +225,8 @@ QRect Workspace::clientArea( clientAreaOption opt, int screen, int desktop ) con { if( desktop == NETWinInfo::OnAllDesktops || desktop == 0 ) desktop = currentDesktop(); + if( screen == -1 ) + screen = activeScreen(); QDesktopWidget *desktopwidget = KApplication::desktop(); QRect sarea = !screenarea.isEmpty() // may be empty during KWin initialization ? screenarea[ desktop ][ screen ]