Fixed shadow being offset

This commit is contained in:
Erik Reider 2023-04-22 13:12:54 +02:00
parent 63c7e95332
commit 1e551b462c

View file

@ -338,8 +338,8 @@ void render_box_shadow(struct sway_output *output, pixman_region32_t *output_dam
struct wlr_box box; struct wlr_box box;
memcpy(&box, _box, sizeof(struct wlr_box)); memcpy(&box, _box, sizeof(struct wlr_box));
box.x -= output->lx * wlr_output->scale + blur_sigma; box.x -= blur_sigma;
box.y -= output->ly * wlr_output->scale + blur_sigma; box.y -= blur_sigma;
box.width += 2 * blur_sigma; box.width += 2 * blur_sigma;
box.height += 2 * blur_sigma; box.height += 2 * blur_sigma;