devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=6c76d16a33f0e0a92fb4082ae2bd330885a96a69

commit 6c76d16a33f0e0a92fb4082ae2bd330885a96a69
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Tue Oct 14 14:09:58 2014 -0400

    add code to create new wayland display
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/bin/e_comp_wl.c | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c
index 81cdb32..694f275 100644
--- a/src/bin/e_comp_wl.c
+++ b/src/bin/e_comp_wl.c
@@ -44,7 +44,18 @@ _e_comp_wl_compositor_create(void)
    /* set wayland log handler */
    wl_log_set_handler_server(_e_comp_wl_log_cb_print);
 
+   /* try to create a wayland display */
+   if (!(cdata->wl.disp = wl_display_create()))
+     {
+        ERR("Could not create a Wayland display: %m");
+        goto disp_err;
+     }
+
    return EINA_TRUE;
+
+disp_err:
+   free(cdata);
+   return EINA_FALSE;
 }
 
 /* public functions */

-- 


Reply via email to