From 9735229dee382111f3a875da8f71381b171eee49 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 14 Jun 2024 10:36:59 +1000 Subject: [PATCH] tablet: use our absinfo_x/y struct instead of the libevdev one device->abs.absinfo_x/y points to the x/y axis we want to use and that axis is used in all the evdev helper function. For consistency use that one here too. This is for consistency only and has no effect on tablet devices, the only time this isn't ABS_X/Y is on multitouch devices where that points to ABS_MT_POSITION_X/Y. Part-of: --- src/evdev-tablet.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/evdev-tablet.c b/src/evdev-tablet.c index 5a458582..fe5db8e0 100644 --- a/src/evdev-tablet.c +++ b/src/evdev-tablet.c @@ -455,7 +455,7 @@ tablet_update_xy(struct tablet_dispatch *tablet, if (bit_is_set(tablet->changed_axes, LIBINPUT_TABLET_TOOL_AXIS_X) || bit_is_set(tablet->changed_axes, LIBINPUT_TABLET_TOOL_AXIS_Y)) { - absinfo = libevdev_get_abs_info(device->evdev, ABS_X); + absinfo = device->abs.absinfo_x; if (tablet->rotation.rotate) value = invert_axis(absinfo); @@ -464,7 +464,7 @@ tablet_update_xy(struct tablet_dispatch *tablet, tablet->axes.point.x = value; - absinfo = libevdev_get_abs_info(device->evdev, ABS_Y); + absinfo = device->abs.absinfo_y; if (tablet->rotation.rotate) value = invert_axis(absinfo);