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 | |
parent | 38b37247ff26b7c0926a8d31c1a91f818d1f5d84 (diff) | |
download | sway-3975ca28c2e870eb3f40bbd43a90354743f7ccf1.tar.xz |
smart_borders: separate smartness from edge types
Diffstat (limited to 'sway/tree')
-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) { if (!container_is_floating(con) && ws) { - bool smart = config->hide_edge_borders == E_SMART || - (config->hide_edge_borders == E_SMART_NO_GAPS && + bool smart = config->hide_edge_borders_smart == ESMART_ON || + (config->hide_edge_borders_smart == ESMART_NO_GAPS && !gaps_to_edge(view)); bool hide_smart = smart && view_is_only_visible(view); |