summaryrefslogtreecommitdiffstats
path: root/sway/commands.c
diff options
context:
space:
mode:
authorLibravatar Mikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-04-01 15:58:29 +0200
committerLibravatar Mikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-04-25 00:00:49 +0200
commitd26658fb355fdf7feee2d6aa801e487502e6ce8b (patch)
tree1879cf81d8e55b676bbd4a5b44dd23d5d93e8b5f /sway/commands.c
parentFix problems with floating windows (diff)
downloadsway-d26658fb355fdf7feee2d6aa801e487502e6ce8b.tar.gz
sway-d26658fb355fdf7feee2d6aa801e487502e6ce8b.tar.zst
sway-d26658fb355fdf7feee2d6aa801e487502e6ce8b.zip
Correctly determine default layout
Diffstat (limited to 'sway/commands.c')
-rw-r--r--sway/commands.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sway/commands.c b/sway/commands.c
index 12d60854..ce1fe8a3 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -1760,9 +1760,8 @@ static struct cmd_results *cmd_layout(int argc, char **argv) {
1760 } 1760 }
1761 1761
1762 if (strcasecmp(argv[0], "default") == 0) { 1762 if (strcasecmp(argv[0], "default") == 0) {
1763 // TODO: determine default from default_orientation and 1763 swayc_t *output = swayc_parent_by_type(parent, C_OUTPUT);
1764 // cmd_workspace_layout 1764 parent->layout = default_layout(output);
1765 parent->layout = L_HORIZ;
1766 } else if (strcasecmp(argv[0], "tabbed") == 0) { 1765 } else if (strcasecmp(argv[0], "tabbed") == 0) {
1767 if (parent->type != C_CONTAINER) { 1766 if (parent->type != C_CONTAINER) {
1768 parent = new_container(parent, L_TABBED); 1767 parent = new_container(parent, L_TABBED);