Fixed many Kephal bugs.
BUG: 173017 svn path=/trunk/KDE/kdebase/workspace/; revision=910287
This commit is contained in:
parent
f827f1db97
commit
b362b980cb
1 changed files with 5 additions and 1 deletions
|
@ -209,6 +209,8 @@ void Workspace::updateClientArea( bool force )
|
||||||
++it)
|
++it)
|
||||||
(*it)->checkWorkspacePosition();
|
(*it)->checkWorkspacePosition();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
kDebug(1212) << "Done.";
|
||||||
}
|
}
|
||||||
|
|
||||||
void Workspace::updateClientArea()
|
void Workspace::updateClientArea()
|
||||||
|
@ -230,7 +232,9 @@ QRect Workspace::clientArea( clientAreaOption opt, int screen, int desktop ) con
|
||||||
desktop = currentDesktop();
|
desktop = currentDesktop();
|
||||||
if( screen == -1 )
|
if( screen == -1 )
|
||||||
screen = activeScreen();
|
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 ]
|
? screenarea[ desktop ][ screen ]
|
||||||
: Kephal::ScreenUtils::screenGeometry( screen );
|
: Kephal::ScreenUtils::screenGeometry( screen );
|
||||||
QRect warea = workarea[ desktop ].isNull()
|
QRect warea = workarea[ desktop ].isNull()
|
||||||
|
|
Loading…
Reference in a new issue