diff options
author | emersion <contact@emersion.fr> | 2018-03-30 11:49:45 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-30 11:49:45 -0400 |
commit | 1592543fd67c23467c81dfa51900bd798b9d8dfc (patch) | |
tree | 0f433cabde70591fbaf3e08352d2254222252804 /sway/tree | |
parent | b6b674fd7621dc09182bcc4b0bd6d214365a5b89 (diff) | |
parent | 69eb021767d8cf57b08699c7e330fe8c52ca2764 (diff) | |
download | sway-1592543fd67c23467c81dfa51900bd798b9d8dfc.tar.xz |
Merge pull request #1659 from swaywm/default-orientation
Add default_orientation command
Diffstat (limited to 'sway/tree')
-rw-r--r-- | sway/tree/layout.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sway/tree/layout.c b/sway/tree/layout.c index 97007888..73c4849b 100644 --- a/sway/tree/layout.c +++ b/sway/tree/layout.c @@ -160,12 +160,11 @@ void container_move_to(struct sway_container* container, enum sway_container_layout container_get_default_layout( struct sway_container *output) { - /* TODO WLR if (config->default_layout != L_NONE) { - //return config->default_layout; + return config->default_layout; } else if (config->default_orientation != L_NONE) { return config->default_orientation; - } else */if (output->width >= output->height) { + } else if (output->width >= output->height) { return L_HORIZ; } else { return L_VERT; |