all repos — fluxbox @ d03edf29641fa833aa636f2a195f3f810fa366c6

custom fork of the fluxbox windowmanager

fix potential infinite loop in transient windows
Mark Tiefenbruck mark@fluxbox.org
commit

d03edf29641fa833aa636f2a195f3f810fa366c6

parent

f0e60d08652d7ae71f682714d772e3211e8e4133

1 files changed, 1 insertions(+), 3 deletions(-)

jump to
M src/WinClient.ccsrc/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) {