xwayland: Walk the regions' boxes

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 <ofourdan@redhat.com>
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Fixes: aa05f38f3 - xwayland: Add SourceValidate hook
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1485>
This commit is contained in:
Olivier Fourdan 2024-04-11 15:46:37 +02:00 committed by Marge Bot
parent 3b6b88c184
commit 385226bdaf

View File

@ -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);
}