mirror of
https://github.com/swaywm/sway.git
synced 2025-11-07 13:29:56 -05:00
Correctly determine default layout
This commit is contained in:
parent
8d700fe008
commit
d26658fb35
5 changed files with 22 additions and 14 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue