From d1d0cb84d1e8ce55c8f584e640c8c74f8545ca51 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 b5536f9..020ba34 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,