From 5bc01ac817b794bddcfd40eabc0199efd4c75779 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubo=C5=A1=20Lu=C5=88=C3=A1k?= Date: Fri, 14 Dec 2007 17:29:19 +0000 Subject: [PATCH] Prevent transient loops also when caused by 'this' (which doesn't have the new value set yet). BUG: 153360 svn path=/trunk/KDE/kdebase/workspace/; revision=748511 --- group.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/group.cpp b/group.cpp index 396a279b34..f2dc6e72b6 100644 --- a/group.cpp +++ b/group.cpp @@ -834,7 +834,7 @@ Window Client::verifyTransientFor( Window new_transient_for, bool defined ) if( pos == NULL ) break; loop_pos = pos->transient_for_id; - if( --count == 0 ) + if( --count == 0 || pos == this ) { kWarning( 1216 ) << "Client " << this << " caused WM_TRANSIENT_FOR loop." ; new_transient_for = rootWindow();