From f03a16f929bc6e6b9446cf5e83cd934bbb047e4b Mon Sep 17 00:00:00 2001 From: JengHyun Kang Date: Thu, 1 Feb 2018 19:57:29 +0900 Subject: [PATCH] ecore_wl2: add a touch device for a touch cancel event Change-Id: I87fdaafe4b8c98c36145562cad0d605345fe6c21 --- src/lib/ecore_wl2/ecore_wl2_input.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/lib/ecore_wl2/ecore_wl2_input.c b/src/lib/ecore_wl2/ecore_wl2_input.c index 2847723..4b05085 100644 --- a/src/lib/ecore_wl2/ecore_wl2_input.c +++ b/src/lib/ecore_wl2/ecore_wl2_input.c @@ -1707,7 +1707,17 @@ _touch_cb_cancel(void *data, struct wl_touch *touch EINA_UNUSED) ev->window = input->focus.touch->id; ev->event_window = ev->window; - ecore_event_add(ECORE_EVENT_MOUSE_BUTTON_CANCEL, ev, NULL, NULL); + ev->buttons = 1; + + ev->root.x = input->pointer.sx; + ev->root.y = input->pointer.sy; + ev->x = input->pointer.sx; + ev->y = input->pointer.sy; + ev->modifiers = input->keyboard.modifiers; + + ev->dev = _ecore_wl2_touch_dev_get(input, ev->window); + + ecore_event_add(ECORE_EVENT_MOUSE_BUTTON_CANCEL, ev, NULL, _input_event_mouse_button_cb_free); // } -- 2.7.4