Just use findModal().
svn path=/branches/work/kwin_composite/; revision=632379
This commit is contained in:
parent
6c9d910d7f
commit
0a9e366038
1 changed files with 1 additions and 7 deletions
|
@ -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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue