Warn if the touch isn't down for a touch motion

This commit is contained in:
Peter Hutterer 2022-05-04 13:27:16 +10:00
parent 1f37500607
commit 1fd88a364c

View file

@ -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) {