Commit b362b980 authored by Guillaume Pothier's avatar Guillaume Pothier
Browse files

Fixed many Kephal bugs.

BUG: 173017

svn path=/trunk/KDE/kdebase/workspace/; revision=910287
parent f827f1db
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment