Replace -1 with active screen in clientArea() if needed.
svn path=/trunk/KDE/kdebase/workspace/; revision=810009
This commit is contained in:
parent
96f5d3441f
commit
fb1827d124
1 changed files with 2 additions and 0 deletions
|
@ -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 ]
|
||||
|
|
Loading…
Reference in a new issue