]> Dogcows Code - chaz/openbox/blobdiff - openbox/client.c
fix a comment
[chaz/openbox] / openbox / client.c
index 0bc4ff90c36946e4aa7f2c8b4be7859165297c8e..a80159786b8ca9c9f957e2b04dd28e9cedf3ad54 100644 (file)
@@ -441,7 +441,6 @@ void client_manage(Window window)
 
     /* do this after the window is placed, so the premax/prefullscreen numbers
        won't be all wacko!!
-       also, this moves the window to the position where it has been placed
     */
     client_apply_startup_state(self);
 
@@ -2376,10 +2375,21 @@ ObClient *client_search_focus_tree_full(ObClient *self)
 
 gboolean client_has_parent(ObClient *self)
 {
-    return (self->transient_for &&
-            ((self->transient_for != OB_TRAN_GROUP &&
-              client_normal(self->transient_for)) ||
-             (self->group && self->group->members->next)));
+    if (self->transient_for) {
+        if (self->transient_for != OB_TRAN_GROUP) {
+            if (client_normal(self->transient_for))
+                return TRUE;
+        }
+        else if (self->group) {
+            GSList *it;
+
+            for (it = self->group->members; it; it = g_slist_next(it)) {
+                if (it->data != self && client_normal(it->data))
+                    return TRUE;
+            }
+        }
+    }
+    return FALSE;
 }
 
 static ObStackingLayer calc_layer(ObClient *self)
This page took 0.022219 seconds and 4 git commands to generate.