aboutsummaryrefslogtreecommitdiff
path: root/sway/commands
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-05-21 19:52:08 -0400
committerGitHub <noreply@github.com>2018-05-21 19:52:08 -0400
commit9731d080bea58fee78bd52bb5633cb37ec7edc22 (patch)
tree7fbc2b11fc371cdec7ed1b5cdbeb2224d429cace /sway/commands
parent8bbf78fdd430a7e315356ebeda36adbf48b8953d (diff)
parent4de137e02161ef8188775d50fe5dc8d9e9bb2216 (diff)
downloadsway-9731d080bea58fee78bd52bb5633cb37ec7edc22.tar.xz
Merge pull request #2015 from RyanDwyer/stacked-layout
Implement stacked layout
Diffstat (limited to 'sway/commands')
-rw-r--r--sway/commands/layout.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/commands/layout.c b/sway/commands/layout.c
index 8aa321ae..58728f16 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;