diff options
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r-- | sway/tree/container.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c index 6da6212c..5721c35c 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c @@ -1123,3 +1123,8 @@ void container_discover_outputs(struct sway_container *con) { } } } + +int container_sibling_index(const struct sway_container *child) { + return list_find(child->parent->children, child); +} + |