]> Dogcows Code - chaz/openbox/commitdiff
support for transients of groups
authorDana Jansens <danakj@orodu.net>
Mon, 7 Apr 2003 08:45:52 +0000 (08:45 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 7 Apr 2003 08:45:52 +0000 (08:45 +0000)
openbox/client.h
openbox/stacking.c

index 172d4caf30663bd856be242d66f95af32e0f7b64..3ab555b00097706f63e7f7044ac5ebb96055a75d 100644 (file)
@@ -123,7 +123,11 @@ typedef struct Client {
       be TRUE if transient_for != NULL, but not guaranteed to be FALSE if
       transient_for == NULL. */
     gboolean transient;
-    /*! The client which this client is a transient (child) for */
+    /*! The client which this client is a transient (child) for.
+      A value of TRAN_GROUP signifies that the window is a transient for all
+      members of its Group, and is not a valid pointer to be followed in this
+      case.
+     */
     struct Client *transient_for;
     /*! The clients which are transients (children) of this client */
     GSList *transients;
index b8194a785d206e5839fed92802387ffd5437ca90..275cd572bc1395b7f55535da60dac167bae30669 100644 (file)
@@ -94,6 +94,8 @@ void stacking_lower(Client *client)
                 GSList *sit;
                 Client *c = it->data;
 
+                if (it->data == client) continue;
+
                 for (sit = c->group->members; sit; sit = sit->next)
                     if (sit->data == it->data) break;
                 if (sit) break; /* got it */
This page took 0.026116 seconds and 4 git commands to generate.