diff options
author | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-04-01 15:58:29 +0200 |
---|---|---|
committer | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-04-25 00:00:49 +0200 |
commit | d26658fb355fdf7feee2d6aa801e487502e6ce8b (patch) | |
tree | 1879cf81d8e55b676bbd4a5b44dd23d5d93e8b5f /sway/commands.c | |
parent | 8d700fe008ccf9f7eb4664e236277c9f30a449fb (diff) |
Correctly determine default layout
Diffstat (limited to 'sway/commands.c')
-rw-r--r-- | sway/commands.c | 5 |
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) { } if (strcasecmp(argv[0], "default") == 0) { - // TODO: determine default from default_orientation and - // cmd_workspace_layout - parent->layout = L_HORIZ; + swayc_t *output = swayc_parent_by_type(parent, C_OUTPUT); + parent->layout = default_layout(output); } else if (strcasecmp(argv[0], "tabbed") == 0) { if (parent->type != C_CONTAINER) { parent = new_container(parent, L_TABBED); |