aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-01-23 08:20:07 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-01-23 08:20:07 (GMT)
commitd03edf29641fa833aa636f2a195f3f810fa366c6 (patch)
tree4fec92d9468f18980917676dc9fa66f6a0490ec3
parentf0e60d08652d7ae71f682714d772e3211e8e4133 (diff)
downloadfluxbox_paul-d03edf29641fa833aa636f2a195f3f810fa366c6.zip
fluxbox_paul-d03edf29641fa833aa636f2a195f3f810fa366c6.tar.bz2
fix potential infinite loop in transient windows
-rw-r--r--src/WinClient.cc4
1 files changed, 1 insertions, 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() {
325#endif // DEBUG 325#endif // DEBUG
326 // make sure we don't have deadlock loop in transient chain 326 // make sure we don't have deadlock loop in transient chain
327 for (WinClient *w = this; w != 0; w = w->transient_for) { 327 for (WinClient *w = this; w != 0; w = w->transient_for) {
328 if (w == w->transient_for) { 328 if (this == w->transient_for)
329 w->transient_for = 0; 329 w->transient_for = 0;
330 break;
331 }
332 } 330 }
333 331
334 if (transientFor() != 0) { 332 if (transientFor() != 0) {