From 1fd88a364c39d7aa437c648188cecbf767e37fe0 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 4 May 2022 13:27:16 +1000 Subject: [PATCH] Warn if the touch isn't down for a touch motion --- src/libei-device.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libei-device.c b/src/libei-device.c index fbda0d2..c92e3f6 100644 --- a/src/libei-device.c +++ b/src/libei-device.c @@ -669,8 +669,11 @@ ei_touch_motion(struct ei_touch *touch, double x, double y) return; } - if (touch->state != TOUCH_IS_DOWN) + if (touch->state != TOUCH_IS_DOWN) { + log_bug_client(ei_device_get_context(device), + "%s: touch %u is not currently down\n", __func__, touch->tracking_id); return; + } struct ei_region *r; list_for_each(r, &device->regions, link) {