If we cannot connect to the wayland display, then print an error and

exit.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2013-06-26 12:53:00 +01:00
parent 078473137f
commit 504bb0e2bb
1 changed files with 6 additions and 0 deletions

View File

@ -51,6 +51,12 @@ engine_wayland_egl_args(const char *engine __UNUSED__, int width __UNUSED__, int
}
wl.display = wl_display_connect(NULL);
if (!wl.display)
{
printf("Expedite cannot connect to wayland display\n");
return EINA_FALSE;
}
wl.registry = wl_display_get_registry(wl.display);
wl_registry_add_listener(wl.registry, &_registry_listener, NULL);
wl_display_roundtrip(wl.display);