]> Dogcows Code - chaz/openbox/commitdiff
add client_search_transient which searches the tree from a client down for a client
authorDana Jansens <danakj@orodu.net>
Fri, 25 Jul 2003 13:25:09 +0000 (13:25 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 25 Jul 2003 13:25:09 +0000 (13:25 +0000)
openbox/client.c
openbox/client.h

index b31c939cd45585d2fc0e9e10495db9d2de245e20..a961c1496dd1aa80acb612835574429235fe1be6 100644 (file)
@@ -2635,3 +2635,16 @@ ObClient *client_search_top_transient(ObClient *self)
 
     return self;
 }
+
+ObClient *client_search_transient(ObClient *self, ObClient *search)
+{
+    GSList *sit;
+
+    for (sit = self->transients; sit; sit = g_slist_next(sit)) {
+        if (sit->data == search)
+            return search;
+        if (client_search_transient(sit->data, search))
+            return search;
+    }
+    return NULL;
+}
index c3bbe2b9e1368e95eb0f7c52777c628ae257df6d..7001765f60b0e830c3ea86d0afdb1b49e0bb5ab5 100644 (file)
@@ -431,6 +431,8 @@ ObClient *client_search_modal_child(ObClient *self);
 
 ObClient *client_search_top_transient(ObClient *self);
 
+ObClient *client_search_transient(ObClient *self, ObClient *search);
+
 /*! Return the "closest" client in the given direction */
 ObClient *client_find_directional(ObClient *c, ObDirection dir);
 
This page took 0.031447 seconds and 4 git commands to generate.