Merge pull request #34 from tiosgz/layer-shell-pos

Do not add output position twice when rendering
This commit is contained in:
Niclas 2021-08-11 20:17:12 +00:00 committed by GitHub
commit 5a5cc4c425
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -39,8 +39,8 @@ render_layer_surface(struct wlr_surface *surface, int x, int y, void *data)
return;
}
int ox = rdata->output_lx + x + geom->x;
int oy = rdata->output_ly + y + geom->y;
int ox = x + geom->x;
int oy = y + geom->y;
struct wlr_box box = {
.x = ox * output->scale,