summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2013-06-26 12:53:00 +0100
committerChris Michael <cp.michael@samsung.com>2013-06-26 12:53:00 +0100
commit504bb0e2bb64f31eeee7bf4c2c301eca3068645a (patch)
treea0e58efb3f989dd6a71c8318ce683377e42c5e3f
parent078473137fbf702ea184c02fe00e3331788e65a0 (diff)
If we cannot connect to the wayland display, then print an error and
exit. Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r--src/bin/engine_wayland_egl.c6
1 files changed, 6 insertions, 0 deletions
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
51 } 51 }
52 52
53 wl.display = wl_display_connect(NULL); 53 wl.display = wl_display_connect(NULL);
54 if (!wl.display)
55 {
56 printf("Expedite cannot connect to wayland display\n");
57 return EINA_FALSE;
58 }
59
54 wl.registry = wl_display_get_registry(wl.display); 60 wl.registry = wl_display_get_registry(wl.display);
55 wl_registry_add_listener(wl.registry, &_registry_listener, NULL); 61 wl_registry_add_listener(wl.registry, &_registry_listener, NULL);
56 wl_display_roundtrip(wl.display); 62 wl_display_roundtrip(wl.display);