diff options
Diffstat (limited to 'sway/commands')
-rw-r--r-- | sway/commands/layout.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/commands/layout.c b/sway/commands/layout.c index 8aa321ae..6b44b001 100644 --- a/sway/commands/layout.c +++ b/sway/commands/layout.c @@ -41,6 +41,8 @@ struct cmd_results *cmd_layout(int argc, char **argv) { parent->layout = L_VERT; } else if (strcasecmp(argv[0], "tabbed") == 0) { parent->layout = L_TABBED; + } else if (strcasecmp(argv[0], "stacking") == 0) { + parent->layout = L_STACKED; } else if (strcasecmp(argv[0], "toggle") == 0 && argc == 2 && strcasecmp(argv[1], "split") == 0) { if (parent->layout == L_HORIZ) { parent->layout = L_VERT; @@ -50,6 +52,7 @@ struct cmd_results *cmd_layout(int argc, char **argv) { } } + container_notify_subtree_changed(parent); arrange_children_of(parent); return cmd_results_new(CMD_SUCCESS, NULL, NULL); |