Replace -1 with active screen in clientArea() if needed.

svn path=/trunk/KDE/kdebase/workspace/; revision=810009
This commit is contained in:
Luboš Luňák 2008-05-19 21:22:06 +00:00
parent 96f5d3441f
commit fb1827d124

View file

@ -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 ]