diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-01-23 08:20:07 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-01-23 08:20:07 (GMT) |
commit | d03edf29641fa833aa636f2a195f3f810fa366c6 (patch) | |
tree | 4fec92d9468f18980917676dc9fa66f6a0490ec3 /src | |
parent | f0e60d08652d7ae71f682714d772e3211e8e4133 (diff) | |
download | fluxbox_paul-d03edf29641fa833aa636f2a195f3f810fa366c6.zip fluxbox_paul-d03edf29641fa833aa636f2a195f3f810fa366c6.tar.bz2 |
fix potential infinite loop in transient windows
Diffstat (limited to 'src')
-rw-r--r-- | src/WinClient.cc | 4 |
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) { |