Fix crash in EffectWindow::visibleInClientGroup() when it's called on a

window that doesn't have a decoration.
BUG: 214757

svn path=/trunk/KDE/kdebase/workspace/; revision=1049896
This commit is contained in:
Lucas Murray 2009-11-16 03:58:58 +00:00
parent f57028f387
commit 622828eba4

View file

@ -1516,7 +1516,11 @@ void EffectWindowImpl::closeWindow() const
bool EffectWindowImpl::visibleInClientGroup() const bool EffectWindowImpl::visibleInClientGroup() const
{ {
if( Client* c = dynamic_cast< Client* >( toplevel )) if( Client* c = dynamic_cast< Client* >( toplevel ))
{
if( !c->clientGroup() )
return true;
return c == c->clientGroup()->visible(); return c == c->clientGroup()->visible();
}
return false; return false;
} }