}
}
+static void _conformant_area_free (void *data EINA_UNUSED, void *ev)
+{
+ Ecore_Wl_Event_Conformant_Change *e = ev;
+ free(e);
+ e = NULL;
+}
+
static Eina_Rectangle _conformant_area_backup = { 0, 0, 0, 0 };
static Eina_Bool reset_conformant_area(Ecore_IMF_Context *ctx)
{
ev->win = ecore_wl_window_id_get(window);
ev->part_type = 1;
ev->state = 0;
- ecore_event_add(ECORE_WL_EVENT_CONFORMANT_CHANGE, ev, NULL, NULL);
+ ecore_event_add(ECORE_WL_EVENT_CONFORMANT_CHANGE, ev, _conformant_area_free, NULL);
}
_conformant_reset_started = EINA_TRUE;
ev->win = ecore_wl_window_id_get(window);
ev->part_type = 1;
ev->state = 0;
- ecore_event_add(ECORE_WL_EVENT_CONFORMANT_CHANGE, ev, NULL, NULL);
+ ecore_event_add(ECORE_WL_EVENT_CONFORMANT_CHANGE, ev, _conformant_area_free, NULL);
}
_conformant_reset_started = EINA_FALSE;
}
}
static void
+_ecore_keyevent_free (void *data EINA_UNUSED, void *ev)
+{
+ Ecore_Event_Key *e = ev;
+ free(e);
+ e = NULL;
+}
+
+static void
text_input_keysym(void *data,
struct wl_text_input *text_input EINA_UNUSED,
uint32_t serial EINA_UNUSED,
}
else {
if (state)
- ecore_event_add(ECORE_EVENT_KEY_DOWN, e, NULL, NULL);
+ ecore_event_add(ECORE_EVENT_KEY_DOWN, e, _ecore_keyevent_free, NULL);
else
- ecore_event_add(ECORE_EVENT_KEY_UP, e, NULL, NULL);
+ ecore_event_add(ECORE_EVENT_KEY_UP, e, _ecore_keyevent_free, NULL);
}
}