[PATCH xf86-input-libinput] Init touch x/y axis labels as MT axis labels
Peter Hutterer
peter.hutterer at who-t.net
Sun Jun 12 21:56:40 UTC 2016
https://bugs.freedesktop.org/show_bug.cgi?id=96481
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
src/xf86libinput.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/xf86libinput.c b/src/xf86libinput.c
index 5295085..e18f8ff 100644
--- a/src/xf86libinput.c
+++ b/src/xf86libinput.c
@@ -798,10 +798,10 @@ xf86libinput_init_touch(InputInfoPtr pInfo)
res = 0;
xf86InitValuatorAxisStruct(dev, 0,
- XIGetKnownProperty(AXIS_LABEL_PROP_ABS_X),
+ XIGetKnownProperty(AXIS_LABEL_PROP_ABS_MT_POSITION_X),
min, max, res * 1000, 0, res * 1000, Absolute);
xf86InitValuatorAxisStruct(dev, 1,
- XIGetKnownProperty(AXIS_LABEL_PROP_ABS_Y),
+ XIGetKnownProperty(AXIS_LABEL_PROP_ABS_MT_POSITION_Y),
min, max, res * 1000, 0, res * 1000, Absolute);
InitTouchClassDeviceStruct(dev, TOUCH_MAX_SLOTS, XIDirectTouch, 2);
--
2.7.4
More information about the xorg-devel
mailing list