libweston/input: update view transforms when handling confined pointer motion

When the pointer is confined and we are handling motion, we need
up-to-date view transforms in order to respect the confinement. So
update view transforms in such case.

This fixes an issue in which we'd try to transform views with dirty
transforms in weston_pointer_clamp_event_to_region(), hitting an assert.

This is a leftover of d611ab24 "libweston: Update view transforms more
often".

Signed-off-by: Leandro Ribeiro <leandro.ribeiro@collabora.com>
This commit is contained in:
Leandro Ribeiro 2022-12-15 09:40:39 -03:00
parent ce4cf2d060
commit 04cc477afa

View File

@ -4798,6 +4798,8 @@ confined_pointer_grab_pointer_motion(struct weston_pointer_grab *grab,
surface = pointer->focus->surface;
weston_view_update_transform(pointer->focus);
pixman_region32_init(&confine_region);
pixman_region32_intersect(&confine_region,
&surface->input,