[PATCH libinput 4/6] tablet: allow tablet_get_x/y_transformed for proximity events as well

Peter Hutterer peter.hutterer at who-t.net
Thu Nov 5 20:55:31 PST 2015


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 src/libinput.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/libinput.c b/src/libinput.c
index e384d8d..a05148f 100644
--- a/src/libinput.c
+++ b/src/libinput.c
@@ -1027,7 +1027,8 @@ libinput_event_tablet_get_x_transformed(struct libinput_event_tablet *event,
 	require_event_type(libinput_event_get_context(&event->base),
 			   event->base.type,
 			   0,
-			   LIBINPUT_EVENT_TABLET_AXIS);
+			   LIBINPUT_EVENT_TABLET_AXIS,
+			   LIBINPUT_EVENT_TABLET_PROXIMITY);
 
 	return evdev_device_transform_x(device,
 					event->axes[LIBINPUT_TABLET_AXIS_X],
@@ -1044,7 +1045,8 @@ libinput_event_tablet_get_y_transformed(struct libinput_event_tablet *event,
 	require_event_type(libinput_event_get_context(&event->base),
 			   event->base.type,
 			   0,
-			   LIBINPUT_EVENT_TABLET_AXIS);
+			   LIBINPUT_EVENT_TABLET_AXIS,
+			   LIBINPUT_EVENT_TABLET_PROXIMITY);
 
 	return evdev_device_transform_y(device,
 					event->axes[LIBINPUT_TABLET_AXIS_Y],
-- 
2.4.3



More information about the wayland-devel mailing list