summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRusty Lynch <rusty.lynch@intel.com>2013-08-08 21:08:17 -0700
committerKristian Høgsberg <krh@bitplanet.net>2013-08-20 16:11:08 -0700
commit36ced9b3758fef26bd86f4ab310537a85214feb8 (patch)
treec2fb4565925b39465d15e1de4b55224a2244ac9f
parentfd38e989b0e3489b3ae296796bf5887a41d20154 (diff)
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.
-rw-r--r--src/evdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evdev.c b/src/evdev.c
index f1fdfa77..3f1eb7ce 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: