ec->comp_data->evas_init = EINA_TRUE;
}
-#ifndef HAVE_WAYLAND_ONLY
static Eina_Bool
_e_comp_wl_cb_randr_change(void *data EINA_UNUSED, int type EINA_UNUSED, void *event EINA_UNUSED)
{
return ECORE_CALLBACK_RENEW;
}
-#endif
static Eina_Bool
_e_comp_wl_cb_comp_object_add(void *data EINA_UNUSED, int type EINA_UNUSED, E_Event_Comp_Object *ev)
goto comp_global_err;
}
-#ifndef HAVE_WAYLAND_ONLY
_e_comp_wl_cb_randr_change(NULL, 0, NULL);
-#endif
/* try to init data manager */
if (!e_comp_wl_data_manager_init(cdata))
/* clients_win_hash = eina_hash_int64_new(NULL); */
/* add event handlers to catch E events */
-#ifndef HAVE_WAYLAND_ONLY
- if (!e_randr2_init()) return EINA_FALSE;
+ if (e_comp->comp_type != E_PIXMAP_TYPE_X)
+ e_randr2_init();
E_LIST_HANDLER_APPEND(handlers, E_EVENT_RANDR_CHANGE,
- _e_comp_wl_cb_randr_change, NULL);
-#endif
+ _e_comp_wl_cb_randr_change, NULL);
E_LIST_HANDLER_APPEND(handlers, E_EVENT_COMP_OBJECT_ADD,
_e_comp_wl_cb_comp_object_add, NULL);