discomfitor pushed a commit to branch enlightenment-0.20.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=0502cc947fbd4ed8496c87b00205499a9c6b35c4

commit 0502cc947fbd4ed8496c87b00205499a9c6b35c4
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Thu Dec 10 11:34:15 2015 -0500

    init ecore-x during wl-x11 init to ensure DISPLAY is set
---
 src/modules/wl_x11/e_mod_main.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/modules/wl_x11/e_mod_main.c b/src/modules/wl_x11/e_mod_main.c
index 75c379f..e47fe21 100644
--- a/src/modules/wl_x11/e_mod_main.c
+++ b/src/modules/wl_x11/e_mod_main.c
@@ -66,6 +66,11 @@ e_modapi_init(E_Module *m)
 
    printf("LOAD WL_X11 MODULE\n");
 
+   if (!ecore_x_init(NULL))
+     {
+        fprintf(stderr, "X11 connect failed!\n");
+        return NULL;
+     }
    e_comp_x_randr_canvas_new(ecore_x_window_root_first_get(), 1, 1);
 
    if (!e_comp->ee)
@@ -108,6 +113,7 @@ e_modapi_shutdown(E_Module *m EINA_UNUSED)
 {
    /* delete handler for keymap change */
    if (kbd_hdlr) ecore_event_handler_del(kbd_hdlr);
+   ecore_x_shutdown();
 
    return 1;
 }

-- 


Reply via email to