fix potential infinite loop in transient windows

This commit is contained in:
Mark Tiefenbruck 2008-01-23 00:20:07 -08:00
parent f0e60d0865
commit d03edf2964

View file

@ -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) {