From 00b10a93f12f228428cd35f16f3611bba85bf079 Mon Sep 17 00:00:00 2001 From: Ronan Pigott Date: Fri, 3 Sep 2021 15:15:44 -0700 Subject: commands: update split none command for a047b5ee4 --- sway/commands/split.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sway/commands/split.c b/sway/commands/split.c index 4c275883..c8a2cfc1 100644 --- a/sway/commands/split.c +++ b/sway/commands/split.c @@ -36,8 +36,8 @@ static struct cmd_results *do_unsplit() { struct sway_container *con = config->handler_context.container; struct sway_workspace *ws = config->handler_context.workspace; - if (con && con->parent && con->parent->children->length == 1) { - container_flatten(con->parent); + if (con && con->pending.parent && con->pending.parent->pending.children->length == 1) { + container_flatten(con->pending.parent); } else { return cmd_results_new(CMD_FAILURE, "Can only flatten a child container with no siblings"); } -- cgit v1.2.3