add code to create new wayland display

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2014-10-14 14:09:58 -04:00
parent edc0037655
commit 6c76d16a33
1 changed files with 11 additions and 0 deletions

View File

@ -44,7 +44,18 @@ _e_comp_wl_compositor_create(void)
/* set wayland log handler */
wl_log_set_handler_server(_e_comp_wl_log_cb_print);
/* try to create a wayland display */
if (!(cdata->wl.disp = wl_display_create()))
{
ERR("Could not create a Wayland display: %m");
goto disp_err;
}
return EINA_TRUE;
disp_err:
free(cdata);
return EINA_FALSE;
}
/* public functions */