Just use findModal().

svn path=/branches/work/kwin_composite/; revision=632379
This commit is contained in:
Luboš Luňák 2007-02-10 21:55:31 +00:00
parent 6c9d910d7f
commit 0a9e366038

View file

@ -104,13 +104,7 @@ bool DialogParentEffect::hasModalWindow( Toplevel* t )
Client* c = qobject_cast<Client *>(t); Client* c = qobject_cast<Client *>(t);
if( !c ) if( !c )
return false; return false;
return c->findModal() != NULL;
// Check if any of the direct transients (children) of this window is modal
for( ClientList::ConstIterator it = c->transients().begin(); it != c->transients().end(); ++it )
if( (*it)->isModal())
return true;
return false;
} }