aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/layout.c
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-21 22:58:46 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-05-22 08:27:24 +1000
commit664169fbf1c4e07f17a48b2b801dad9cea31ea4c (patch)
treee20b1f39a89abd5a6567f7e9d398f002e9ee5bee /sway/commands/layout.c
parentFix focus follows mouse with no focus (diff)
downloadsway-664169fbf1c4e07f17a48b2b801dad9cea31ea4c.tar.gz
sway-664169fbf1c4e07f17a48b2b801dad9cea31ea4c.tar.zst
sway-664169fbf1c4e07f17a48b2b801dad9cea31ea4c.zip
Implement stacked layout
Diffstat (limited to 'sway/commands/layout.c')
-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) {
41 parent->layout = L_VERT; 41 parent->layout = L_VERT;
42 } else if (strcasecmp(argv[0], "tabbed") == 0) { 42 } else if (strcasecmp(argv[0], "tabbed") == 0) {
43 parent->layout = L_TABBED; 43 parent->layout = L_TABBED;
44 } else if (strcasecmp(argv[0], "stacking") == 0) {
45 parent->layout = L_STACKED;
44 } else if (strcasecmp(argv[0], "toggle") == 0 && argc == 2 && strcasecmp(argv[1], "split") == 0) { 46 } else if (strcasecmp(argv[0], "toggle") == 0 && argc == 2 && strcasecmp(argv[1], "split") == 0) {
45 if (parent->layout == L_HORIZ) { 47 if (parent->layout == L_HORIZ) {
46 parent->layout = L_VERT; 48 parent->layout = L_VERT;