]> Dogcows Code - chaz/openbox/commitdiff
more fixes for the transient tree
authorDana Jansens <danakj@orodu.net>
Sat, 5 May 2007 01:12:59 +0000 (01:12 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 5 May 2007 01:12:59 +0000 (01:12 +0000)
openbox/client.c

index 1714e29c7da7950958bb5f0a42cdef02393900ce..cea6d99b224403701c23186b106d408e6cf90226 100644 (file)
@@ -1179,15 +1179,14 @@ void client_update_transient_for(ObClient *self)
                 }
             }
         }
-    } else if (self->group) {
-        if (self->type == OB_CLIENT_TYPE_DIALOG ||
-            self->type == OB_CLIENT_TYPE_TOOLBAR ||
-            self->type == OB_CLIENT_TYPE_MENU ||
-            self->type == OB_CLIENT_TYPE_UTILITY)
-        {
-            self->transient = TRUE;
+    } else if (self->type == OB_CLIENT_TYPE_DIALOG ||
+               self->type == OB_CLIENT_TYPE_TOOLBAR ||
+               self->type == OB_CLIENT_TYPE_MENU ||
+               self->type == OB_CLIENT_TYPE_UTILITY)
+    {
+        self->transient = TRUE;
+        if (self->group)
             target = OB_TRAN_GROUP;
-        }
     } else
         self->transient = FALSE;
 
@@ -1281,7 +1280,7 @@ static void client_update_transient_tree(ObClient *self,
              !client_is_direct_child(self, newparent))
         newparent->transients = g_slist_append(newparent->transients, self);
 
-    /* If the group changed then we need to add any old group transient
+    /* If the group changed then we need to add any new group transient
        windows to our children. But if we're transient for the group, then
        other group transients are not our children.
 
This page took 0.028539 seconds and 4 git commands to generate.