From: Hosang Kim Date: Fri, 19 May 2017 08:20:11 +0000 (+0900) Subject: evas_events: add missing device information X-Git-Tag: accepted/tizen/unified/20170531.082540~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=22d6a967dd6b9db0a02e29e465c42b50d151f866;p=platform%2Fupstream%2Fefl.git evas_events: add missing device information Change-Id: I5de5f4ed5ca53d78f6d3903374c371a7b2fcfdad --- diff --git a/src/lib/evas/canvas/evas_events.c b/src/lib/evas/canvas/evas_events.c index 174a88a..248d41c 100644 --- a/src/lib/evas/canvas/evas_events.c +++ b/src/lib/evas/canvas/evas_events.c @@ -1261,6 +1261,8 @@ _post_up_handle(Evas *eo_e, unsigned int timestamp, const void *data) ev_in.locks = &(e->locks); ev_in.timestamp = timestamp; ev_in.event_flags = e->default_event_flags; + ev_in.dev = _evas_device_top_get(eo_e); + if (ev_in.dev) evas_device_ref(ev_in.dev); EINA_LIST_FOREACH(ins, l, eo_obj_itr) { @@ -1287,6 +1289,7 @@ _post_up_handle(Evas *eo_e, unsigned int timestamp, const void *data) } post_called = 1; _evas_post_event_callback_call(eo_e, e); + if (ev_in.dev) _evas_device_unref(ev_in.dev); } else {