summaryrefslogtreecommitdiff
path: root/sway/desktop/render.c
diff options
context:
space:
mode:
authorWill McKinnon <[email protected]>2023-02-18 18:51:58 -0500
committerWill McKinnon <[email protected]>2023-02-18 18:51:58 -0500
commite9781805a74add9bcc7de472c704a476c41c18a5 (patch)
treef60930a1c298b9c00373a370a1a2d804713a64bc /sway/desktop/render.c
parent9f20a5263814f325035d3569768060e04c7dcb96 (diff)
fix: shadow alignment
Diffstat (limited to 'sway/desktop/render.c')
-rw-r--r--sway/desktop/render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/desktop/render.c b/sway/desktop/render.c
index c03265fa..0a79d2c8 100644
--- a/sway/desktop/render.c
+++ b/sway/desktop/render.c
@@ -497,7 +497,7 @@ static void render_view(struct sway_output *output, pixman_region32_t *damage,
// render shadow
if (con->shadow_enabled && config->shadow_blur_sigma > 0 && config->shadow_color[3] > 0.0) {
struct sway_container_state *state = &con->current;
- struct wlr_box box = { state->x, state->y, state->width, state->height };
+ struct wlr_box box = { floor(state->x), floor(state->y), state->width, state->height };
scale_box(&box, output->wlr_output->scale);
render_box_shadow(output, damage, &box, config->shadow_color,
config->shadow_blur_sigma, con->corner_radius,