]> Dogcows Code - chaz/openbox/commitdiff
watch for transient == ~0ul
authorDana Jansens <danakj@orodu.net>
Thu, 8 Aug 2002 05:00:43 +0000 (05:00 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 8 Aug 2002 05:00:43 +0000 (05:00 +0000)
src/Window.cc

index 46bd644ddf64145652730399ee95828b58ba4404..3935f829db38265642189df0f88a2a8f32d47b0b 100644 (file)
@@ -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;
This page took 0.030075 seconds and 4 git commands to generate.