Don't crash.
svn path=/trunk/KDE/kdebase/workspace/; revision=662145
This commit is contained in:
parent
a6bb443640
commit
d05ac624be
1 changed files with 7 additions and 2 deletions
|
@ -417,8 +417,13 @@ bool Workspace::activateNextClient( Client* c )
|
|||
if( !ci->isShown( false )
|
||||
|| !ci->isOnCurrentDesktop())
|
||||
continue;
|
||||
if( options->separateScreenFocus && !ci->isOnScreen( c->screen()))
|
||||
continue;
|
||||
if( options->separateScreenFocus )
|
||||
{
|
||||
if( c != NULL && !ci->isOnScreen( c->screen()))
|
||||
continue;
|
||||
if( c == NULL && !ci->isOnScreen( activeScreen()))
|
||||
continue;
|
||||
}
|
||||
if( mainwindows.contains( ci ))
|
||||
{
|
||||
get_focus = ci;
|
||||
|
|
Loading…
Reference in a new issue