From b6423e59d9116d140e33e925d6dd9bf8324188a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20G=C3=B3mez?= Date: Mon, 6 Mar 2023 16:38:11 -0500 Subject: [PATCH] libweston: Add assert for valid confine region in maybe_warp_confined_pointer() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sergio Gómez --- libweston/input.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libweston/input.c b/libweston/input.c index 7ea90324..3e79143f 100644 --- a/libweston/input.c +++ b/libweston/input.c @@ -4730,6 +4730,7 @@ maybe_warp_confined_pointer(struct weston_pointer_constraint *constraint) pixman_region32_intersect(&confine_region, &constraint->view->surface->input, &constraint->region); + assert(!pixman_region32_selfcheck(&confine_region)); region_to_outline(&confine_region, &borders); pixman_region32_fini(&confine_region);