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:
parent
078473137f
commit
504bb0e2bb
|
@ -51,6 +51,12 @@ engine_wayland_egl_args(const char *engine __UNUSED__, int width __UNUSED__, int
|
||||||
}
|
}
|
||||||
|
|
||||||
wl.display = wl_display_connect(NULL);
|
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 = wl_display_get_registry(wl.display);
|
||||||
wl_registry_add_listener(wl.registry, &_registry_listener, NULL);
|
wl_registry_add_listener(wl.registry, &_registry_listener, NULL);
|
||||||
wl_display_roundtrip(wl.display);
|
wl_display_roundtrip(wl.display);
|
||||||
|
|
Loading…
Reference in New Issue