fix potential infinite loop in transient windows
This commit is contained in:
parent
f0e60d0865
commit
d03edf2964
1 changed files with 1 additions and 3 deletions
|
@ -325,10 +325,8 @@ void WinClient::updateTransientInfo() {
|
||||||
#endif // DEBUG
|
#endif // DEBUG
|
||||||
// make sure we don't have deadlock loop in transient chain
|
// make sure we don't have deadlock loop in transient chain
|
||||||
for (WinClient *w = this; w != 0; w = w->transient_for) {
|
for (WinClient *w = this; w != 0; w = w->transient_for) {
|
||||||
if (w == w->transient_for) {
|
if (this == w->transient_for)
|
||||||
w->transient_for = 0;
|
w->transient_for = 0;
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (transientFor() != 0) {
|
if (transientFor() != 0) {
|
||||||
|
|
Loading…
Reference in a new issue