Don't crash.

svn path=/trunk/KDE/kdebase/workspace/; revision=662145
This commit is contained in:
Luboš Luňák 2007-05-07 14:55:35 +00:00
parent a6bb443640
commit d05ac624be

View file

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