libweston: Add assert for valid confine region in maybe_warp_confined_pointer()

Signed-off-by: Sergio Gómez <sergio.g.delreal@gmail.com>
This commit is contained in:
Sergio Gómez 2023-03-06 16:38:11 -05:00
parent e3079393c4
commit b6423e59d9
1 changed files with 1 additions and 0 deletions

View File

@ -4730,6 +4730,7 @@ maybe_warp_confined_pointer(struct weston_pointer_constraint *constraint)
pixman_region32_intersect(&confine_region, pixman_region32_intersect(&confine_region,
&constraint->view->surface->input, &constraint->view->surface->input,
&constraint->region); &constraint->region);
assert(!pixman_region32_selfcheck(&confine_region));
region_to_outline(&confine_region, &borders); region_to_outline(&confine_region, &borders);
pixman_region32_fini(&confine_region); pixman_region32_fini(&confine_region);