From 8a11c2ff7479c2231bac2cf5b7299bf4ca81b102 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Wed, 24 Sep 2003 16:56:49 +0000 Subject: [PATCH] Fix transiency loop with WM_TRANSIENT_FOR poiting to itself (e.g. with ssh-askpass), and put the Only True assert() (TM) back. svn path=/trunk/kdebase/kwin/; revision=253636 --- group.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/group.cpp b/group.cpp index 0ceb2d50ac..a30c3eb994 100644 --- a/group.cpp +++ b/group.cpp @@ -534,7 +534,7 @@ Window Client::verifyTransientFor( Window new_transient_for, bool defined ) void Client::addTransient( Client* cl ) { assert( !transients_list.contains( cl )); - Q_ASSERT( cl != this ); + assert( cl != this ); transients_list.append( cl ); // kdDebug() << "ADDTRANS:" << this << ":" << cl << endl; // kdDebug() << kdBacktrace() << endl; @@ -561,6 +561,7 @@ void Client::checkTransient( Window w ) { if( original_transient_for_id != w ) return; + w = verifyTransientFor( w, true ); setTransient( w ); }