diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-08-08 05:00:43 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-08-08 05:00:43 +0000 |
| commit | 027dbd1c2032ea29f291d2e710f5743cf6fda22a (patch) | |
| tree | 14d5595d6baa7ad45bf6962456e1b71f574c30ff | |
| parent | f3a54e41a0e220cf42e717ebae0b5fe8eb2a614c (diff) | |
watch for transient == ~0ul
| -rw-r--r-- | src/Window.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Window.cc b/src/Window.cc index 46bd644d..3935f829 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -1420,7 +1420,8 @@ void BlackboxWindow::getTransientInfo(void) { // Check for a circular transient state: this can lock up Blackbox // when it tries to find the non-transient window for a transient. BlackboxWindow *w = this; - while(w->client.transient_for) { + while(w->client.transient_for && + w->client.transient_for != (BlackboxWindow *) ~0ul) { if(w->client.transient_for == this) { client.transient_for = (BlackboxWindow*) 0; break; @@ -1428,7 +1429,8 @@ void BlackboxWindow::getTransientInfo(void) { w = w->client.transient_for; } - if (client.transient_for) { + if (client.transient_for && + client.transient_for != (BlackboxWindow *) ~0ul) { // register ourselves with our new transient_for client.transient_for->client.transientList.push_back(this); flags.stuck = client.transient_for->flags.stuck; |
