From 0a9e366038626ea8c159ad766f9453054850c85f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Sat, 10 Feb 2007 21:55:31 +0000 Subject: [PATCH] Just use findModal(). svn path=/branches/work/kwin_composite/; revision=632379 --- effects/dialogparent.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/effects/dialogparent.cpp b/effects/dialogparent.cpp index 5d80e2b5eb..d80bba0a61 100644 --- a/effects/dialogparent.cpp +++ b/effects/dialogparent.cpp @@ -104,13 +104,7 @@ bool DialogParentEffect::hasModalWindow( Toplevel* t ) Client* c = qobject_cast(t); if( !c ) return false; - - // 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; + return c->findModal() != NULL; }