Fixed shadow being offset
This commit is contained in:
parent
63c7e95332
commit
1e551b462c
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue