From 92e83929f0485e739ecd57d8b04e176259b296d1 Mon Sep 17 00:00:00 2001 From: Rusty Lynch Date: Thu, 8 Aug 2013 21:08:17 -0700 Subject: [PATCH] evdev: Use touch ID 0 when generating touch up event device->mt.slot is uninitialized when we're not receiving the evdev slot events. Always use ID 0 as we do when we generate the touch down and motion events. --- src/evdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/evdev.c b/src/evdev.c index 342cb9b..2018e2a 100644 --- a/src/evdev.c +++ b/src/evdev.c @@ -86,7 +86,7 @@ evdev_process_key(struct evdev_device *device, struct input_event *e, int time) case BTN_TOUCH: if (e->value == 0 && !device->is_mt) - notify_touch(device->seat, time, device->mt.slot, 0, 0, + notify_touch(device->seat, time, 0, 0, 0, WL_TOUCH_UP); break; default: -- 2.7.4