Translate shadow box coords for views
This commit is contained in:
parent
0fbd5c3dce
commit
9bf5ab7f97
1 changed files with 2 additions and 2 deletions
|
@ -466,8 +466,8 @@ static void render_surface_iterator(struct sway_output *output,
|
||||||
corner_radius = (con->corner_radius + state->border_thickness) * wlr_output->scale;
|
corner_radius = (con->corner_radius + state->border_thickness) * wlr_output->scale;
|
||||||
|
|
||||||
// Account for titlebars
|
// Account for titlebars
|
||||||
dst_box.x = floor(state->x);
|
dst_box.x = floor(state->x) - output->lx;
|
||||||
dst_box.y = floor(state->y);
|
dst_box.y = floor(state->y) - output->ly;
|
||||||
dst_box.width = state->width;
|
dst_box.width = state->width;
|
||||||
dst_box.height = state->height;
|
dst_box.height = state->height;
|
||||||
scale_box(&dst_box, wlr_output->scale);
|
scale_box(&dst_box, wlr_output->scale);
|
||||||
|
|
Loading…
Add table
Reference in a new issue