add client_search_transient which searches the tree from a client down for a client
This commit is contained in:
parent
399952e547
commit
11cde9683d
2 changed files with 15 additions and 0 deletions
|
@ -2635,3 +2635,16 @@ ObClient *client_search_top_transient(ObClient *self)
|
||||||
|
|
||||||
return 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;
|
||||||
|
}
|
||||||
|
|
|
@ -431,6 +431,8 @@ ObClient *client_search_modal_child(ObClient *self);
|
||||||
|
|
||||||
ObClient *client_search_top_transient(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 */
|
/*! Return the "closest" client in the given direction */
|
||||||
ObClient *client_find_directional(ObClient *c, ObDirection dir);
|
ObClient *client_find_directional(ObClient *c, ObDirection dir);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue