diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-03-30 10:43:55 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-03-30 10:43:55 -0400 |
commit | 69eb021767d8cf57b08699c7e330fe8c52ca2764 (patch) | |
tree | c4160dfb51ece94ea4858fd86a097b881405f4b9 /sway/tree/layout.c | |
parent | Fix crash when override redirect views close (diff) | |
download | sway-69eb021767d8cf57b08699c7e330fe8c52ca2764.tar.gz sway-69eb021767d8cf57b08699c7e330fe8c52ca2764.tar.zst sway-69eb021767d8cf57b08699c7e330fe8c52ca2764.zip |
Add default_orientation command
Diffstat (limited to 'sway/tree/layout.c')
-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 dc0ee5b4..c7cf16e6 100644 --- a/sway/tree/layout.c +++ b/sway/tree/layout.c | |||
@@ -123,12 +123,11 @@ struct sway_container *container_remove_child(struct sway_container *child) { | |||
123 | 123 | ||
124 | enum sway_container_layout container_get_default_layout( | 124 | enum sway_container_layout container_get_default_layout( |
125 | struct sway_container *output) { | 125 | struct sway_container *output) { |
126 | /* TODO WLR | ||
127 | if (config->default_layout != L_NONE) { | 126 | if (config->default_layout != L_NONE) { |
128 | //return config->default_layout; | 127 | return config->default_layout; |
129 | } else if (config->default_orientation != L_NONE) { | 128 | } else if (config->default_orientation != L_NONE) { |
130 | return config->default_orientation; | 129 | return config->default_orientation; |
131 | } else */if (output->width >= output->height) { | 130 | } else if (output->width >= output->height) { |
132 | return L_HORIZ; | 131 | return L_HORIZ; |
133 | } else { | 132 | } else { |
134 | return L_VERT; | 133 | return L_VERT; |