devilhorns pushed a commit to branch master.

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

commit f056e7af6271ffb305a3ef33a582a8fb3cafe7ae
Author: Chris Michael <[email protected]>
Date:   Thu Jun 26 10:19:34 2014 -0400

    check for an already existing wayland compositor before trying to
    create another one.
    
    Signed-off-by: Chris Michael <[email protected]>
---
 src/bin/e_comp_wl.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c
index cb38939..1b8d66d 100644
--- a/src/bin/e_comp_wl.c
+++ b/src/bin/e_comp_wl.c
@@ -238,6 +238,8 @@ e_comp_wl_init(void)
    int fd = 0;
    char buf[PATH_MAX];
 
+   if (_e_wl_comp) return EINA_TRUE;
+
    /* try to allocate space for a new compositor */
    if (!(_e_wl_comp = E_NEW(E_Wayland_Compositor, 1)))
      return EINA_FALSE;

-- 


Reply via email to