From 385226bdaf0c3bc738c178697d6c72e0da2d1d15 Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Thu, 11 Apr 2024 15:46:37 +0200 Subject: [PATCH] xwayland: Walk the regions' boxes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In xwl_source_validate(), the actual box wasn't updated, so we would possibly copy several times the same first box. Signed-off-by: Olivier Fourdan Reviewed-by: Michel Dänzer Fixes: aa05f38f3 - xwayland: Add SourceValidate hook Part-of: --- hw/xwayland/xwayland-window.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/xwayland/xwayland-window.c b/hw/xwayland/xwayland-window.c index c0938b9e4..b111a1e4a 100644 --- a/hw/xwayland/xwayland-window.c +++ b/hw/xwayland/xwayland-window.c @@ -270,6 +270,7 @@ xwl_source_validate(DrawablePtr drawable, int x, int y, int width, int height, pbox->x1, pbox->y1, pbox->x2 - pbox->x1, pbox->y2 - pbox->y1, pbox->x1, pbox->y1); + pbox++; } FreeScratchGC(pGC); }