summaryrefslogtreecommitdiffstats
path: root/include/container.h
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2016-07-16 10:26:45 -0400
committerLibravatar GitHub <noreply@github.com>2016-07-16 10:26:45 -0400
commitd5ad8c9036f37576af94c6cbbe79e68415bb7e22 (patch)
tree001033de86cb34fca09837a643a0818f299cdf3e /include/container.h
parentFix warning in window.c (diff)
parentrefactor swayc_tabbed_stacked_parent into _ancestor and _parent and use where... (diff)
downloadsway-d5ad8c9036f37576af94c6cbbe79e68415bb7e22.tar.gz
sway-d5ad8c9036f37576af94c6cbbe79e68415bb7e22.tar.zst
sway-d5ad8c9036f37576af94c6cbbe79e68415bb7e22.zip
Merge pull request #754 from thejan2009/containers-inside-tabbed-stacked
Clarify which tabbed/stacked container we want (fixes #751)
Diffstat (limited to 'include/container.h')
-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);
262 * Returns the top most tabbed or stacked parent container. Returns NULL if 262 * Returns the top most tabbed or stacked parent container. Returns NULL if
263 * view is not in a tabbed/stacked layout. 263 * view is not in a tabbed/stacked layout.
264 */ 264 */
265swayc_t *swayc_tabbed_stacked_ancestor(swayc_t *view);
266
267/**
268 * Returns the immediate tabbed or stacked parent container. Returns NULL if
269 * view is not directly in a tabbed/stacked layout.
270 */
265swayc_t *swayc_tabbed_stacked_parent(swayc_t *view); 271swayc_t *swayc_tabbed_stacked_parent(swayc_t *view);
266 272
267/** 273/**