static E_Keyrouter_Config_Data *
_e_keyrouter_init(E_Module *m)
{
+ wl_display* comp_wl_display;
E_Keyrouter_Config_Data *kconfig = NULL;
krt = E_NEW(E_Keyrouter, 1);
Eina_Bool res = EINA_FALSE;
return NULL;
}
- if (!e_comp_get())
+ comp_wl_display = e_comp_wl_display_get();
+ if (!comp_wl_display)
{
- KLERR("Failed to initialize keyrouter module ! (e_comp_get() == NULL)");
+ KLERR("Failed to initialize keyrouter module ! (comp_wl_display == NULL)");
goto err;
}
ecore_idle_enterer_add(_e_keyrouter_cb_idler, NULL);
_e_keyrouter_init_handlers();
- krt->global = wl_global_create(e_comp_wl_display_get(), &tizen_keyrouter_interface, 1, krt, _e_keyrouter_cb_bind);
+ krt->global = wl_global_create(comp_wl_display, &tizen_keyrouter_interface, 1, krt, _e_keyrouter_cb_bind);
if (!krt->global)
{
KLERR("Failed to create global !");