From d03edf29641fa833aa636f2a195f3f810fa366c6 Mon Sep 17 00:00:00 2001 From: Mark Tiefenbruck Date: Wed, 23 Jan 2008 00:20:07 -0800 Subject: fix potential infinite loop in transient windows --- src/WinClient.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/WinClient.cc b/src/WinClient.cc index 450a041..68e5600 100644 --- a/src/WinClient.cc +++ b/src/WinClient.cc @@ -325,10 +325,8 @@ void WinClient::updateTransientInfo() { #endif // DEBUG // make sure we don't have deadlock loop in transient chain for (WinClient *w = this; w != 0; w = w->transient_for) { - if (w == w->transient_for) { + if (this == w->transient_for) w->transient_for = 0; - break; - } } if (transientFor() != 0) { -- cgit v0.11.2