Commit 1ab6637b authored by Peter Hutterer's avatar Peter Hutterer

zero out the valuator mask before sending touch events

otherwise we might re-submit values from other events
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 16796d08
......@@ -446,6 +446,8 @@ xf86libinput_handle_touch(InputInfoPtr pInfo,
return;
};
valuator_mask_zero(m);
if (event_type != LIBINPUT_EVENT_TOUCH_UP) {
val = libinput_event_touch_get_x_transformed(event, TOUCH_AXIS_MAX);
valuator_mask_set_double(m, 0, li_fixed_to_double(val));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment