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 <[email protected]>
---
 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

_______________________________________________
wayland-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to