aboutsummaryrefslogtreecommitdiff
path: root/sway/tree
diff options
context:
space:
mode:
authorRonan Pigott <rpigott@berkeley.edu>2019-11-04 15:10:40 -0700
committerBrian Ashworth <bosrsf04@gmail.com>2019-11-04 21:16:27 -0500
commit3975ca28c2e870eb3f40bbd43a90354743f7ccf1 (patch)
treed35aa9aa8b0c17e94fb24359a13ab83547cafae5 /sway/tree
parent38b37247ff26b7c0926a8d31c1a91f818d1f5d84 (diff)
downloadsway-3975ca28c2e870eb3f40bbd43a90354743f7ccf1.tar.xz
smart_borders: separate smartness from edge types
Diffstat (limited to 'sway/tree')
-rw-r--r--sway/tree/view.c4
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);