diff options
Diffstat (limited to 'sway/commands.c')
-rw-r--r-- | sway/commands.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sway/commands.c b/sway/commands.c index 11284577..07dd715c 100644 --- a/sway/commands.c +++ b/sway/commands.c | |||
@@ -1759,7 +1759,15 @@ static struct cmd_results *cmd_layout(int argc, char **argv) { | |||
1759 | parent = parent->parent; | 1759 | parent = parent->parent; |
1760 | } | 1760 | } |
1761 | 1761 | ||
1762 | if (strcasecmp(argv[0], "splith") == 0) { | 1762 | if (strcasecmp(argv[0], "default") == 0) { |
1763 | // TODO: determine default from default_orientation and | ||
1764 | // cmd_workspace_layout | ||
1765 | parent->layout = L_HORIZ; | ||
1766 | } else if (strcasecmp(argv[0], "tabbed") == 0) { | ||
1767 | parent->layout = L_TABBED; | ||
1768 | } else if (strcasecmp(argv[0], "stacking") == 0) { | ||
1769 | parent->layout = L_STACKED; | ||
1770 | } else if (strcasecmp(argv[0], "splith") == 0) { | ||
1763 | parent->layout = L_HORIZ; | 1771 | parent->layout = L_HORIZ; |
1764 | } else if (strcasecmp(argv[0], "splitv") == 0) { | 1772 | } else if (strcasecmp(argv[0], "splitv") == 0) { |
1765 | parent->layout = L_VERT; | 1773 | parent->layout = L_VERT; |
@@ -1770,6 +1778,7 @@ static struct cmd_results *cmd_layout(int argc, char **argv) { | |||
1770 | parent->layout = L_VERT; | 1778 | parent->layout = L_VERT; |
1771 | } | 1779 | } |
1772 | } | 1780 | } |
1781 | |||
1773 | arrange_windows(parent, parent->width, parent->height); | 1782 | arrange_windows(parent, parent->width, parent->height); |
1774 | 1783 | ||
1775 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); | 1784 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); |