[PATCH libinput 11/13] tablet: add assert that deltas are always 0
Peter Hutterer
peter.hutterer at who-t.net
Thu Mar 9 11:06:55 UTC 2017
The tablet axis struct has a delta field that's only useful for the events,
not for our internal axis handling. Make sure we never set it to anything
nonzero.
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
src/evdev-tablet.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/evdev-tablet.c b/src/evdev-tablet.c
index 1120598..413fb42 100644
--- a/src/evdev-tablet.c
+++ b/src/evdev-tablet.c
@@ -1479,6 +1479,9 @@ tablet_send_events(struct tablet_dispatch *tablet,
tablet_check_notify_axes(tablet, device, tool, &axes, time);
}
+ assert(tablet->axes.delta.x == 0);
+ assert(tablet->axes.delta.y == 0);
+
tablet_send_proximity_in(tablet, tool, device, &axes, time);
if (!tablet_send_tip(tablet, tool, device, &axes, time))
tablet_send_axes(tablet, tool, device, &axes, time);
--
2.9.3
More information about the wayland-devel
mailing list