diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libinput.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/libinput.c b/src/libinput.c index cea83c1..fb19de9 100644 --- a/src/libinput.c +++ b/src/libinput.c @@ -436,11 +436,13 @@ xf86libinput_handle_touch(InputInfoPtr pInfo, m = valuator_mask_new(2); - val = libinput_event_touch_get_x_transformed(event, TOUCH_AXIS_MAX); - valuator_mask_set_double(m, 0, li_fixed_to_double(val)); + 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)); - val = libinput_event_touch_get_y_transformed(event, TOUCH_AXIS_MAX); - valuator_mask_set_double(m, 1, li_fixed_to_double(val)); + val = libinput_event_touch_get_y_transformed(event, TOUCH_AXIS_MAX); + valuator_mask_set_double(m, 1, li_fixed_to_double(val)); + } xf86PostTouchEvent(dev, touchids[slot], type, 0, m); } |