mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-10-06 18:28:04 +00:00
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 from2dc8680d
will fire. This is a leftover fromd611ab24
Update the transform before converting the coordinate to fix this. Signed-off-by: Derek Foreman <derek.foreman@collabora.com>
This commit is contained in:
parent
27ce9dadd8
commit
c7b9625775
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue