diff options
author | Ronan Pigott <rpigott@berkeley.edu> | 2019-11-04 15:10:40 -0700 |
---|---|---|
committer | Brian Ashworth <bosrsf04@gmail.com> | 2019-11-04 21:16:27 -0500 |
commit | 3975ca28c2e870eb3f40bbd43a90354743f7ccf1 (patch) | |
tree | d35aa9aa8b0c17e94fb24359a13ab83547cafae5 /sway/tree/view.c | |
parent | Add --custom to `output mode` command (diff) | |
download | sway-3975ca28c2e870eb3f40bbd43a90354743f7ccf1.tar.gz sway-3975ca28c2e870eb3f40bbd43a90354743f7ccf1.tar.zst sway-3975ca28c2e870eb3f40bbd43a90354743f7ccf1.zip |
smart_borders: separate smartness from edge types
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r-- | sway/tree/view.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c index 376cc332..93d4fefc 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c | |||
@@ -215,8 +215,8 @@ void view_autoconfigure(struct sway_view *view) { | |||
215 | 215 | ||
216 | if (!container_is_floating(con) && ws) { | 216 | if (!container_is_floating(con) && ws) { |
217 | 217 | ||
218 | bool smart = config->hide_edge_borders == E_SMART || | 218 | bool smart = config->hide_edge_borders_smart == ESMART_ON || |
219 | (config->hide_edge_borders == E_SMART_NO_GAPS && | 219 | (config->hide_edge_borders_smart == ESMART_NO_GAPS && |
220 | !gaps_to_edge(view)); | 220 | !gaps_to_edge(view)); |
221 | bool hide_smart = smart && view_is_only_visible(view); | 221 | bool hide_smart = smart && view_is_only_visible(view); |
222 | 222 | ||