From 8036be5f52c454f3ee7a17a8036ace2a7ec1d1a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Wed, 8 Nov 2006 19:29:29 +0000 Subject: [PATCH] Fix dialog<->parent handling to also work with group transient dialogs. svn path=/branches/work/kwin_composite/; revision=603396 --- effects/dialogparent.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/effects/dialogparent.cpp b/effects/dialogparent.cpp index 24754d975c..f8b529298f 100644 --- a/effects/dialogparent.cpp +++ b/effects/dialogparent.cpp @@ -78,8 +78,8 @@ void DialogParentEffect::windowActivated( Toplevel* t ) if ( c && c->isModal() ) { // c is a modal dialog - Client* parent = c->transientFor(); - if ( parent ) + ClientList mainclients = c->mainClients(); + foreach( Client* parent, mainclients ) parent->addDamageFull(); } } @@ -93,8 +93,8 @@ void DialogParentEffect::windowDeleted( Toplevel* t ) if ( c && c->isModal() ) { // c is a modal dialog - Client* parent = c->transientFor(); - if ( parent ) + ClientList mainclients = c->mainClients(); + foreach( Client* parent, mainclients ) parent->addDamageFull(); } } @@ -107,7 +107,7 @@ bool DialogParentEffect::hasModalWindow( Toplevel* t ) // 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() && (*it)->transientFor() == c ) + if( (*it)->isModal()) return true; return false;