devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=57611c6d2f0e69c6de4acf9130f47948ce7181fc

commit 57611c6d2f0e69c6de4acf9130f47948ce7181fc
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Wed Apr 22 10:29:42 2015 -0400

    e-comp-wl: Init randr if we are not wayland only
    
    This is needed for the wl-x11 module
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/bin/e_comp_wl.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c
index 4b8be36..719bcec 100644
--- a/src/bin/e_comp_wl.c
+++ b/src/bin/e_comp_wl.c
@@ -710,6 +710,8 @@ _e_comp_wl_cb_randr_change(void *data EINA_UNUSED, int type 
EINA_UNUSED, void *e
    E_Randr2_Screen *screen;
    unsigned int transform = WL_OUTPUT_TRANSFORM_NORMAL;
 
+   if (!e_randr2) return ECORE_CALLBACK_RENEW;
+
    EINA_LIST_FOREACH(e_randr2->screens, l, screen)
      {
         if (!screen->config.enabled) continue;
@@ -2503,6 +2505,8 @@ e_comp_wl_init(void)
 
    /* add event handlers to catch E events */
 #ifndef HAVE_WAYLAND_ONLY
+   if (!e_randr2_init()) return EINA_FALSE;
+
    E_LIST_HANDLER_APPEND(handlers, E_EVENT_RANDR_CHANGE,
                          _e_comp_wl_cb_randr_change, NULL);
 #endif

-- 


Reply via email to