diff options
author | Ronan Pigott <rpigott@berkeley.edu> | 2021-09-03 15:15:44 -0700 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-09-04 00:24:47 +0200 |
commit | 00b10a93f12f228428cd35f16f3611bba85bf079 (patch) | |
tree | 515ead11e72aa42cee06de8cd582fbcec893ce3c /sway/commands/split.c | |
parent | command: implement split none (diff) | |
download | sway-00b10a93f12f228428cd35f16f3611bba85bf079.tar.gz sway-00b10a93f12f228428cd35f16f3611bba85bf079.tar.zst sway-00b10a93f12f228428cd35f16f3611bba85bf079.zip |
commands: update split none command for a047b5ee4
Diffstat (limited to 'sway/commands/split.c')
-rw-r--r-- | sway/commands/split.c | 4 |
1 files 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() { | |||
36 | struct sway_container *con = config->handler_context.container; | 36 | struct sway_container *con = config->handler_context.container; |
37 | struct sway_workspace *ws = config->handler_context.workspace; | 37 | struct sway_workspace *ws = config->handler_context.workspace; |
38 | 38 | ||
39 | if (con && con->parent && con->parent->children->length == 1) { | 39 | if (con && con->pending.parent && con->pending.parent->pending.children->length == 1) { |
40 | container_flatten(con->parent); | 40 | container_flatten(con->pending.parent); |
41 | } else { | 41 | } else { |
42 | return cmd_results_new(CMD_FAILURE, "Can only flatten a child container with no siblings"); | 42 | return cmd_results_new(CMD_FAILURE, "Can only flatten a child container with no siblings"); |
43 | } | 43 | } |