Do not add output position twice when rendering
The renderer already uses output-local positions.
This commit is contained in:
parent
7393f5abe5
commit
d1d0cb84d1
1 changed files with 2 additions and 2 deletions
|
@ -39,8 +39,8 @@ render_layer_surface(struct wlr_surface *surface, int x, int y, void *data)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
int ox = rdata->output_lx + x + geom->x;
|
int ox = x + geom->x;
|
||||||
int oy = rdata->output_ly + y + geom->y;
|
int oy = y + geom->y;
|
||||||
|
|
||||||
struct wlr_box box = {
|
struct wlr_box box = {
|
||||||
.x = ox * output->scale,
|
.x = ox * output->scale,
|
||||||
|
|
Loading…
Add table
Reference in a new issue