summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShin-myoung-serp <relent95@ahope.co.kr>2023-02-01 18:33:31 +0900
committerShin-myoung-serp <relent95@ahope.co.kr>2023-02-01 18:33:31 +0900
commite87c7bfcc2b7e7148554467c6eff8ec28aabe0c2 (patch)
treee71158a409db0e21501b81caa904487da6951cd4
parentf94a8edb0edcca8af53b3994d23735df6a5974f1 (diff)
downloadxorg-driver-xf86-input-libinput-e87c7bfcc2b7e7148554467c6eff8ec28aabe0c2.tar.gz
Correct the coordinate transform parameters for an absolute pointer
Fixes #53
-rw-r--r--src/xf86libinput.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xf86libinput.c b/src/xf86libinput.c
index fbe1e94..a465475 100644
--- a/src/xf86libinput.c
+++ b/src/xf86libinput.c
@@ -1591,8 +1591,8 @@ xf86libinput_handle_absmotion(InputInfoPtr pInfo, struct libinput_event_pointer
if ((driver_data->capabilities & CAP_POINTER) == 0)
return;
- x = libinput_event_pointer_get_absolute_x_transformed(event, TOUCH_AXIS_MAX);
- y = libinput_event_pointer_get_absolute_y_transformed(event, TOUCH_AXIS_MAX);
+ x = libinput_event_pointer_get_absolute_x_transformed(event, TOUCH_AXIS_MAX + 1);
+ y = libinput_event_pointer_get_absolute_y_transformed(event, TOUCH_AXIS_MAX + 1);
valuator_mask_zero(mask);
valuator_mask_set_double(mask, 0, x);