Evas_Device *dev;
SAFETY_CHECK(eo_e, EVAS_CANVAS_CLASS, NULL);
+ e = efl_data_scope_safe_get(eo_e, EVAS_CANVAS_CLASS);
+ if (!e) return NULL;
dev = efl_add_ref(EFL_INPUT_DEVICE_CLASS, parent_dev ?: eo_e,
efl_name_set(efl_added, name),
efl_input_device_evas_set(efl_added, eo_e),
efl_input_device_subclass_set(efl_added, sub_clas));
- e = efl_data_scope_get(eo_e, EVAS_CANVAS_CLASS);
-
/* This is the case when the user is using wayland backend,
since evas itself will not create the devices we must set them here. */
if (!e->default_seat && clas == EVAS_DEVICE_CLASS_SEAT)