kwin: stop crashing

svn path=/trunk/KDE/kdebase/workspace/; revision=524824
This commit is contained in:
Dirk Mueller 2006-03-31 10:43:57 +00:00
parent d5ccf5d388
commit bcb3ad4ada

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;