diff options
author | D.B <thejan.2009@gmail.com> | 2016-07-16 15:11:08 +0200 |
---|---|---|
committer | D.B <thejan.2009@gmail.com> | 2016-07-16 15:34:43 +0200 |
commit | ad7605675ef5d1fc99653e80c3c846429abfda25 (patch) | |
tree | 001033de86cb34fca09837a643a0818f299cdf3e /include | |
parent | Fix warning in window.c (diff) | |
download | sway-ad7605675ef5d1fc99653e80c3c846429abfda25.tar.gz sway-ad7605675ef5d1fc99653e80c3c846429abfda25.tar.zst sway-ad7605675ef5d1fc99653e80c3c846429abfda25.zip |
refactor swayc_tabbed_stacked_parent into _ancestor and _parent and use where needed
Diffstat (limited to 'include')
-rw-r--r-- | include/container.h | 6 |
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 | */ |
265 | swayc_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 | */ | ||
265 | swayc_t *swayc_tabbed_stacked_parent(swayc_t *view); | 271 | swayc_t *swayc_tabbed_stacked_parent(swayc_t *view); |
266 | 272 | ||
267 | /** | 273 | /** |