refactor swayc_tabbed_stacked_parent into _ancestor and _parent and use where needed

This commit is contained in:
D.B 2016-07-16 15:11:08 +02:00
parent 7aeedf0264
commit ad7605675e
7 changed files with 24 additions and 7 deletions

View file

@ -262,6 +262,12 @@ bool swayc_is_empty_workspace(swayc_t *container);
* Returns the top most tabbed or stacked parent container. Returns NULL if
* view is not in a tabbed/stacked layout.
*/
swayc_t *swayc_tabbed_stacked_ancestor(swayc_t *view);
/**
* Returns the immediate tabbed or stacked parent container. Returns NULL if
* view is not directly in a tabbed/stacked layout.
*/
swayc_t *swayc_tabbed_stacked_parent(swayc_t *view);
/**