Change-Id: Ie6bddb77705bfc83c0aa1c9f1ce702853e00ae4d
{
Ecore_Wl_Window *win;
static int _win_id = 1;
+ struct wl_compositor *wlcomp;
LOGFN(__FILE__, __LINE__, __FUNCTION__);
win->opaque.w = w;
win->opaque.h = h;
+ wlcomp = _ecore_wl_compositor_get();
+ if (!wlcomp)
+ {
+ ERR("Failed to get wl_compositor");
+ free(win);
+ return NULL;
+ }
+
win->opaque_region =
- wl_compositor_create_region(_ecore_wl_compositor_get());
+ wl_compositor_create_region(wlcomp);
win->input_region =
- wl_compositor_create_region(_ecore_wl_compositor_get());
+ wl_compositor_create_region(wlcomp);
win->title = NULL;
win->class_name = NULL;