devilhorns pushed a commit to branch master.
commit 504bb0e2bb64f31eeee7bf4c2c301eca3068645a
Author: Chris Michael <[email protected]>
Date: Wed Jun 26 12:53:00 2013 +0100
If we cannot connect to the wayland display, then print an error and
exit.
Signed-off-by: Chris Michael <[email protected]>
---
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);
--
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev