e_comp_wl: add class condition before send event device 96/218196/1
authorjeon <jhyuni.kang@samsung.com>
Wed, 20 Nov 2019 08:01:46 +0000 (17:01 +0900)
committerjeon <jhyuni.kang@samsung.com>
Wed, 20 Nov 2019 08:01:46 +0000 (17:01 +0900)
Change-Id: I5852df62565df456d718cfa02fb577bf7a1701a6

src/bin/e_comp_wl.c

index b72482c4f4b1f092d5e1dae6b5d0f23d9fe499de..9c09c5d720ec136f732ee836a4371dfff4d1e33f 100644 (file)
@@ -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)