From 504bb0e2bb64f31eeee7bf4c2c301eca3068645a Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Wed, 26 Jun 2013 12:53:00 +0100 Subject: [PATCH] If we cannot connect to the wayland display, then print an error and exit. Signed-off-by: Chris Michael --- src/bin/engine_wayland_egl.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/bin/engine_wayland_egl.c b/src/bin/engine_wayland_egl.c index 51f8fbe..bce50ba 100644 --- a/src/bin/engine_wayland_egl.c +++ b/src/bin/engine_wayland_egl.c @@ -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);