fix potential infinite loop in transient windows
Mark Tiefenbruck mark@fluxbox.org
1 files changed,
1 insertions(+),
3 deletions(-)
jump to
M
src/WinClient.cc
→
src/WinClient.cc
@@ -325,10 +325,8 @@ cerr<<__FUNCTION__<<": transient_for = "<<transient_for<<endl;
#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) {