From: jeon Date: Wed, 20 Nov 2019 08:01:46 +0000 (+0900) Subject: e_comp_wl: add class condition before send event device X-Git-Tag: submit/tizen/20191120.103427~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F96%2F218196%2F1;p=platform%2Fupstream%2Fenlightenment.git e_comp_wl: add class condition before send event device Change-Id: I5852df62565df456d718cfa02fb577bf7a1701a6 --- diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index b72482c4f4..9c09c5d720 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -744,7 +744,8 @@ _e_comp_wl_send_event_device(struct wl_client *wc, uint32_t timestamp, Ecore_Dev EINA_LIST_FOREACH(e_devicemgr->device_list, l, input_dev) { - if (!eina_streq(input_dev->identifier, dev_name)) continue; + if (!eina_streq(input_dev->identifier, dev_name) || + (input_dev->clas != ecore_device_class_get(dev))) continue; _e_comp_wl_device_last_device_set(ecore_device_class_get(dev), input_dev); EINA_LIST_FOREACH(input_dev->resources, ll, dev_res)