[PATCH libinput 1/2] tablet: copy distance axis for the mouse/lens cursor devices

Peter Hutterer peter.hutterer at who-t.net
Wed Mar 4 20:25:25 PST 2015


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 src/evdev-tablet.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/evdev-tablet.c b/src/evdev-tablet.c
index 8c11409..3e3924c 100644
--- a/src/evdev-tablet.c
+++ b/src/evdev-tablet.c
@@ -639,6 +639,7 @@ tool_set_bits_from_libwacom(const struct tablet_dispatch *tablet,
 		break;
 	case WSTYLUS_PUCK:
 		copy_axis_cap(tablet, tool, LIBINPUT_TABLET_AXIS_ROTATION_Z);
+		copy_axis_cap(tablet, tool, LIBINPUT_TABLET_AXIS_DISTANCE);
 		/* lens cursors don't have a wheel */
 		if (!libwacom_stylus_has_lens(s))
 			copy_axis_cap(tablet,
-- 
2.1.0



More information about the wayland-devel mailing list