From 2342ded8807a36b7aa31e015597c6ab117102c2a Mon Sep 17 00:00:00 2001 From: Will McKinnon Date: Sat, 24 Dec 2022 01:33:47 -0500 Subject: [PATCH] fix: only round top titlebar in stacked layout --- sway/desktop/render.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sway/desktop/render.c b/sway/desktop/render.c index fd42cbbb..78d4e019 100644 --- a/sway/desktop/render.c +++ b/sway/desktop/render.c @@ -1105,8 +1105,9 @@ static void render_containers_stacked(struct sway_output *output, } int y = parent->box.y + titlebar_height * i; + int corner_radius = i != 0 ? 0 : child->corner_radius; render_titlebar(output, damage, child, parent->box.x, y, parent->box.width, - colors, child->alpha, child->corner_radius, title_texture, marks_texture); + colors, child->alpha, corner_radius, title_texture, marks_texture); if (child == current) { current_colors = colors;