mirror of
https://github.com/X11Libre/xf86-input-libinput.git
synced 2026-03-24 09:34:04 +00:00
zero out the valuator mask before sending touch events
otherwise we might re-submit values from other events Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user