summaryrefslogtreecommitdiff
path: root/sway/desktop/render.c
diff options
context:
space:
mode:
authorWill McKinnon <[email protected]>2022-12-24 01:33:47 -0500
committerWill McKinnon <[email protected]>2022-12-24 01:33:47 -0500
commit2342ded8807a36b7aa31e015597c6ab117102c2a (patch)
tree580e58a55228becafcf7e929edd30541ea198333 /sway/desktop/render.c
parentd1fc6f9d5340e62c79ac02116fe534b7ff00d130 (diff)
fix: only round top titlebar in stacked layout
Diffstat (limited to 'sway/desktop/render.c')
-rw-r--r--sway/desktop/render.c3
1 files changed, 2 insertions, 1 deletions
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;