summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2016-07-16 15:11:08 +0200
committerFurkan Sahin <furkan-dev@proton.me>2016-07-16 15:11:08 +0200
commitdba5f70aadc351edee657ac1cc1c968db7081eeb (patch)
tree001033de86cb34fca09837a643a0818f299cdf3e /include
parent34de3d7e0f1c74e261b2c58f112d36730565dca8 (diff)
refactor swayc_tabbed_stacked_parent into _ancestor and _parent and use where needed
Diffstat (limited to 'include')
-rw-r--r--include/container.h6
1 files changed, 6 insertions, 0 deletions
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);
/**