Fix bug #45759 - CDE window cycling lockup

svn path=/trunk/kdebase/kwin/; revision=168816
This commit is contained in:
Karol Szwed 2002-07-26 06:26:35 +00:00
parent 487f30a4ec
commit bbb9426543

View file

@ -1051,7 +1051,7 @@ void Workspace::walkThroughDesktops( bool forward )
} }
void Workspace::CDEWalkThroughWindows( bool forward ) void Workspace::CDEWalkThroughWindows( bool forward )
{ {
Client* c = topClientOnDesktop(); Client* c = topClientOnDesktop();
Client* nc = c; Client* nc = c;
if ( !forward ){ if ( !forward ){
@ -1075,7 +1075,7 @@ void Workspace::CDEWalkThroughWindows( bool forward )
else else
raiseClient( nc ); raiseClient( nc );
} }
} }
void Workspace::KDEOneStepThroughWindows( bool forward ) void Workspace::KDEOneStepThroughWindows( bool forward )
{ {
@ -1324,7 +1324,7 @@ Client* Workspace::previousClient( Client* c ) const
*/ */
Client* Workspace::nextStaticClient( Client* c ) const Client* Workspace::nextStaticClient( Client* c ) const
{ {
if ( clients.isEmpty() ) if ( !c || clients.isEmpty() )
return 0; return 0;
ClientList::ConstIterator it = clients.find( c ); ClientList::ConstIterator it = clients.find( c );
if ( it == clients.end() ) if ( it == clients.end() )
@ -1340,7 +1340,7 @@ Client* Workspace::nextStaticClient( Client* c ) const
*/ */
Client* Workspace::previousStaticClient( Client* c ) const Client* Workspace::previousStaticClient( Client* c ) const
{ {
if ( clients.isEmpty() ) if ( !c || clients.isEmpty() )
return 0; return 0;
ClientList::ConstIterator it = clients.find( c ); ClientList::ConstIterator it = clients.find( c );
if ( it == clients.end() ) if ( it == clients.end() )