diff options
author | wil <william.barsse@gmail.com> | 2016-12-22 18:46:00 +0100 |
---|---|---|
committer | wil <william.barsse@gmail.com> | 2016-12-29 20:31:30 +0100 |
commit | 0ff9fe9a7a18a5130b7c5e979ba980409f91b5f1 (patch) | |
tree | 08d523251534f637582f168b87223d9e536724db /sway/commands/layout.c | |
parent | [fix] Handle auto layout resize with multiple slave groups (diff) | |
download | sway-0ff9fe9a7a18a5130b7c5e979ba980409f91b5f1.tar.gz sway-0ff9fe9a7a18a5130b7c5e979ba980409f91b5f1.tar.zst sway-0ff9fe9a7a18a5130b7c5e979ba980409f91b5f1.zip |
introduce next/prev as a direction for focus/move commands.
Diffstat (limited to 'sway/commands/layout.c')
-rw-r--r-- | sway/commands/layout.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/commands/layout.c b/sway/commands/layout.c index 5e2e8efd..9e468c21 100644 --- a/sway/commands/layout.c +++ b/sway/commands/layout.c | |||
@@ -49,7 +49,8 @@ struct cmd_results *cmd_layout(int argc, char **argv) { | |||
49 | } else if (strcasecmp(argv[0], "splitv") == 0) { | 49 | } else if (strcasecmp(argv[0], "splitv") == 0) { |
50 | swayc_change_layout(parent, L_VERT); | 50 | swayc_change_layout(parent, L_VERT); |
51 | } else if (strcasecmp(argv[0], "toggle") == 0 && argc == 2 && strcasecmp(argv[1], "split") == 0) { | 51 | } else if (strcasecmp(argv[0], "toggle") == 0 && argc == 2 && strcasecmp(argv[1], "split") == 0) { |
52 | if (parent->layout == L_HORIZ && (parent->workspace_layout == L_NONE || parent->workspace_layout == L_HORIZ)) { | 52 | if (parent->layout == L_HORIZ && (parent->workspace_layout == L_NONE || |
53 | parent->workspace_layout == L_HORIZ)) { | ||
53 | swayc_change_layout(parent, L_VERT); | 54 | swayc_change_layout(parent, L_VERT); |
54 | } else { | 55 | } else { |
55 | swayc_change_layout(parent, L_HORIZ); | 56 | swayc_change_layout(parent, L_HORIZ); |