From 478eb6d693fffc625f2b5b0f51c64d1ffdb149c4 Mon Sep 17 00:00:00 2001 From: tiosgz Date: Wed, 11 Aug 2021 18:49:15 +0000 Subject: [PATCH] Do not add output position twice when rendering The renderer already uses output-local positions. --- kiwmi/desktop/output.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kiwmi/desktop/output.c b/kiwmi/desktop/output.c index 9192024..371c33a 100644 --- a/kiwmi/desktop/output.c +++ b/kiwmi/desktop/output.c @@ -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,