devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=645cb48dd5c565068bb95790e21b86d02ded16f2

commit 645cb48dd5c565068bb95790e21b86d02ded16f2
Author: Chris Michael <[email protected]>
Date:   Mon Mar 17 13:57:56 2014 +0000

    @bugfix: Check return of e_comp_wl_init and initialize ecore_wl library
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/modules/wl_drm/e_mod_main.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/modules/wl_drm/e_mod_main.c b/src/modules/wl_drm/e_mod_main.c
index 99e9e52..1a75f6d 100644
--- a/src/modules/wl_drm/e_mod_main.c
+++ b/src/modules/wl_drm/e_mod_main.c
@@ -44,11 +44,14 @@ e_modapi_init(E_Module *m)
         e_xinerama_screens_set(eina_list_append(NULL, screen));
      }
    comp->man = e_manager_new(0, comp, SCREEN_WIDTH, SCREEN_HEIGHT);
-   e_comp_wl_init();
+   if (!e_comp_wl_init()) return NULL;
    e_comp_canvas_init(comp);
    e_comp_canvas_fake_layers_init(comp);
    comp->pointer = e_pointer_canvas_new(comp->evas, 1);
 
+   ecore_wl_init(NULL);
+   ecore_wl_server_mode_set(1);
+
    return m;
 }
 

-- 


Reply via email to