From ad7605675ef5d1fc99653e80c3c846429abfda25 Mon Sep 17 00:00:00 2001 From: "D.B" Date: Sat, 16 Jul 2016 15:11:08 +0200 Subject: refactor swayc_tabbed_stacked_parent into _ancestor and _parent and use where needed --- include/container.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/container.h') diff --git a/include/container.h b/include/container.h index 6562a752..4dd7f3a0 100644 --- a/include/container.h +++ b/include/container.h @@ -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); /** -- cgit v1.2.3-54-g00ecf