aboutsummaryrefslogtreecommitdiff
path: root/sway/tree
diff options
context:
space:
mode:
Diffstat (limited to 'sway/tree')
-rw-r--r--sway/tree/container.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index df064573..f906449a 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -202,6 +202,9 @@ static struct sway_container *container_at_tabbed(struct sway_node *parent,
}
struct sway_seat *seat = input_manager_current_seat(input_manager);
list_t *children = node_get_children(parent);
+ if (!children->length) {
+ return NULL;
+ }
// Tab titles
int title_height = container_titlebar_height();