int
e_devicemgr_embedded_compositor_init(void)
{
- if (!e_comp_wl) return 0;
- if (!e_comp_wl->wl.disp) return 0;
+ struct wl_display *comp_display;
+
+ if (!(comp_display = e_comp_wl_display_get())) return 0;
/* try to add tizen_embedded_compositor to wayland globals */
- if (!(e_embedded = wl_global_create(e_comp_wl->wl.disp, &tizen_embedded_compositor_interface, 1,
+ if (!(e_embedded = wl_global_create(comp_display, &tizen_embedded_compositor_interface, 1,
NULL, _e_tizen_embedded_compositor_cb_bind)))
{
ERR("Could not add tizen_embedded_compositor to wayland globals");