mirror of
https://github.com/swaywm/sway.git
synced 2024-12-30 17:06:40 +01:00
commands: update split none command for a047b5ee4
This commit is contained in:
parent
de3c290427
commit
00b10a93f1
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue