mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-07 13:08:04 +02:00
libweston: Add assert for valid confine region in maybe_warp_confined_pointer()
Signed-off-by: Sergio Gómez <sergio.g.delreal@gmail.com>
(cherry picked from commit b6423e59d9)
This commit is contained in:
parent
08979a1d79
commit
3e334ff645
1 changed files with 1 additions and 0 deletions
|
|
@ -4728,6 +4728,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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue