From 80376961fc188db596f6f757bd30a68f8a666e45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Mon, 29 Sep 2003 11:20:12 +0000 Subject: [PATCH] More debug output. svn path=/trunk/kdebase/kwin/; revision=254812 --- group.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/group.cpp b/group.cpp index a30c3eb994..3bd0a30b06 100644 --- a/group.cpp +++ b/group.cpp @@ -500,10 +500,17 @@ Window Client::verifyTransientFor( Window new_transient_for, bool defined ) break; new_transient_for = parent_return; } - if( !workspace()->findClient( WindowMatchPredicate( new_transient_for ))) - new_transient_for = before_search; // nice try + if( Client* new_transient_for_client = workspace()->findClient( WindowMatchPredicate( new_transient_for ))) + { + if( new_transient_for != before_search ) + { + kdDebug( 1212 ) << "Client " << this << " has WM_TRANSIENT_FOR poiting to non-toplevel window " + << before_search << ", child of " << new_transient_for_client << ", adjusting." << endl; + new_property_value = new_transient_for; // also fix the property + } + } else - new_property_value = new_transient_for; // also fix the property + new_transient_for = before_search; // nice try // loop detection // group transients cannot cause loops, because they're considered transient only for non-transient // windows in the group