kwin: stop crashing

svn path=/trunk/KDE/kdebase/workspace/; revision=524824
icc-effect-5.14.5
Dirk Mueller 2006-03-31 10:43:57 +00:00
parent d5ccf5d388
commit bcb3ad4ada
1 changed files with 4 additions and 0 deletions

View File

@ -1149,6 +1149,8 @@ int Workspace::previousDesktopFocusChain( int iDesktop ) const
*/
Client* Workspace::nextFocusChainClient( Client* c ) const
{
if ( !c )
return 0;
int desktop = c->isOnAllDesktops() ? currentDesktop() : c->desktop();
if ( focus_chain[desktop].isEmpty() )
return 0;
@ -1167,6 +1169,8 @@ Client* Workspace::nextFocusChainClient( Client* c ) const
*/
Client* Workspace::previousFocusChainClient( Client* c ) const
{
if ( !c )
return 0;
int desktop = c->isOnAllDesktops() ? currentDesktop() : c->desktop();
if ( focus_chain[desktop].isEmpty() )
return 0;