kwin: stop crashing
svn path=/trunk/KDE/kdebase/workspace/; revision=524824
This commit is contained in:
parent
d5ccf5d388
commit
bcb3ad4ada
1 changed files with 4 additions and 0 deletions
|
@ -1149,6 +1149,8 @@ int Workspace::previousDesktopFocusChain( int iDesktop ) const
|
||||||
*/
|
*/
|
||||||
Client* Workspace::nextFocusChainClient( Client* c ) const
|
Client* Workspace::nextFocusChainClient( Client* c ) const
|
||||||
{
|
{
|
||||||
|
if ( !c )
|
||||||
|
return 0;
|
||||||
int desktop = c->isOnAllDesktops() ? currentDesktop() : c->desktop();
|
int desktop = c->isOnAllDesktops() ? currentDesktop() : c->desktop();
|
||||||
if ( focus_chain[desktop].isEmpty() )
|
if ( focus_chain[desktop].isEmpty() )
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -1167,6 +1169,8 @@ Client* Workspace::nextFocusChainClient( Client* c ) const
|
||||||
*/
|
*/
|
||||||
Client* Workspace::previousFocusChainClient( Client* c ) const
|
Client* Workspace::previousFocusChainClient( Client* c ) const
|
||||||
{
|
{
|
||||||
|
if ( !c )
|
||||||
|
return 0;
|
||||||
int desktop = c->isOnAllDesktops() ? currentDesktop() : c->desktop();
|
int desktop = c->isOnAllDesktops() ? currentDesktop() : c->desktop();
|
||||||
if ( focus_chain[desktop].isEmpty() )
|
if ( focus_chain[desktop].isEmpty() )
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue