input: Don't assert when sending touch motion

If a window is clicked with a mouse while it's being interacted with via
touch input, the assert from 2dc8680d will fire.

This is a leftover from d611ab24

Update the transform before converting the coordinate to fix this.

Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
This commit is contained in:
Derek Foreman 2023-02-06 12:04:10 -06:00 committed by Marius Vlad
parent 27ce9dadd8
commit c7b9625775

View file

@ -941,6 +941,8 @@ weston_touch_send_motion(struct weston_touch *touch,
if (!weston_touch_has_focus_resource(touch))
return;
weston_view_update_transform(touch->focus);
tmp_g.c = weston_coord_from_fixed(x, y);
surf_pos = weston_coord_global_to_surface(touch->focus, tmp_g);