summaryrefslogtreecommitdiff
path: root/sway
diff options
context:
space:
mode:
authorWill McKinnon <[email protected]>2022-12-28 15:20:11 -0500
committerWill McKinnon <[email protected]>2022-12-28 15:20:11 -0500
commita6f60eeb31c341819611da9f844d4687b3160706 (patch)
treec19ffc966821a09ee0e6b5fa17f010bd0d128c13 /sway
parent768be91e09ac59675041449571f0ad69d2f642c7 (diff)
feat: avoid rounding corners when there are no gaps
Diffstat (limited to 'sway')
-rw-r--r--sway/desktop/render.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sway/desktop/render.c b/sway/desktop/render.c
index 28f69614..7a985def 100644
--- a/sway/desktop/render.c
+++ b/sway/desktop/render.c
@@ -951,10 +951,9 @@ static void render_containers_linear(struct sway_output *output,
? config->dim_inactive_colors.urgent
: config->dim_inactive_colors.unfocused,
.dim = child->current.focused ? 0.0f: config->dim_inactive,
- // no corner radius if smart gaps are on and only visible view TODO: FIX
- //.corner_radius = config->smart_gaps == SMART_GAPS_ON &&
- //view_ancestor_is_only_visible(view) ? 0 : child->corner_radius,
- .corner_radius = child->corner_radius,
+ // no corner radius if no gaps (allows smart_gaps to work as expected)
+ .corner_radius = output->current.active_workspace->current_gaps.top == 0
+ ? 0 : child->corner_radius,
.saturation = child->saturation,
.has_titlebar = has_titlebar,
};