diff options
Diffstat (limited to 'sway/desktop/render.c')
-rw-r--r-- | sway/desktop/render.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sway/desktop/render.c b/sway/desktop/render.c index 81a965b9..1ecada45 100644 --- a/sway/desktop/render.c +++ b/sway/desktop/render.c @@ -1003,6 +1003,9 @@ static void render_containers_linear(struct sway_output *output, } bool has_titlebar = state->border == B_NORMAL; + int corner_radius = config->smart_corner_radius && + output->current.active_workspace->current_gaps.top == 0 + ? 0 : child->corner_radius; struct decoration_data deco_data = { .alpha = child->alpha, .dim_color = view_is_urgent(view) @@ -1010,8 +1013,7 @@ static void render_containers_linear(struct sway_output *output, : config->dim_inactive_colors.unfocused, .dim = child->current.focused || parent->focused ? 0.0f: config->dim_inactive, // 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, + .corner_radius = corner_radius, .saturation = child->saturation, .has_titlebar = has_titlebar, }; |