Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
transform_absolute(device, &cx, &cy);
touch_notify_touch(base,
time,
- slot,
+ -1,
li_fixed_from_int(cx),
li_fixed_from_int(cy),
LIBINPUT_TOUCH_TYPE_DOWN);
if (device->seat_caps & EVDEV_DEVICE_TOUCH) {
touch_notify_touch(base,
time,
- slot,
+ -1,
li_fixed_from_int(cx),
li_fixed_from_int(cy),
LIBINPUT_TOUCH_TYPE_DOWN);
touch_notify_touch(base,
time,
- 0, 0, 0, LIBINPUT_TOUCH_TYPE_UP);
+ -1,
+ 0, 0,
+ LIBINPUT_TOUCH_TYPE_UP);
break;
default:
assert(0 && "Unknown pending event type");
* Get the slot of this touch event. See the kernel's multitouch
* protocol B documentation for more information.
*
+ * If the touch event has no assigned slot, for example if it is from a
+ * single touch device, this function returns -1.
+ *
* @note this function should not be called for LIBINPUT_EVENT_TOUCH_FRAME.
*
* @return The slot of this touch event