summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuilherme Iscaro <iscaro@profusion.mobi>2016-11-16 16:12:20 -0200
committerGuilherme Iscaro <iscaro@profusion.mobi>2016-11-16 16:12:20 -0200
commitd64a8879f7f93b764791ec8eb27575721d73b756 (patch)
tree91651f8c8802a519c44258d45e9897203d595f31
parentf0a84d76884944a333d1e48820b11cbc6df2b0a9 (diff)
downloadefl-d64a8879f7f93b764791ec8eb27575721d73b756.tar.gz
Ecore Evas Wayland: Remove seat existence check.devs/iscaro/wayland-quick-fix
At this point every seat advertised is considered new, therefore it will not be in the devices list.
-rw-r--r--src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c21
1 files changed, 2 insertions, 19 deletions
diff --git a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
index a87b8659f7..2053c2167b 100644
--- a/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
+++ b/src/modules/ecore_evas/engines/wayland/ecore_evas_wayland_common.c
@@ -562,28 +562,11 @@ _ecore_evas_wl_common_cb_global_added(void *d EINA_UNUSED, int t EINA_UNUSED, vo
EINA_LIST_FOREACH(ee_list, l, ee)
{
- Eina_List *ll;
- EE_Wl_Device *device;
- Ecore_Evas_Engine_Wl_Data *wdata = ee->engine.data;
- Eina_Bool already_present = EINA_FALSE;
-
- EINA_LIST_FOREACH(wdata->devices_list, ll, device)
- {
- if (device->id == ev->id)
- {
- already_present = EINA_TRUE;
- break;
- }
- }
-
- if (!already_present && !_ecore_evas_wl_common_seat_add(ee, ev->id))
- goto err_add;
+ if (!_ecore_evas_wl_common_seat_add(ee, ev->id))
+ break;
}
return ECORE_CALLBACK_PASS_ON;
-
-err_add:
- return ECORE_CALLBACK_PASS_ON;
}
static void