discomfitor pushed a commit to branch master.

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

commit 98ab29ea3c898ae3b9521c907044dbc3576fac9b
Author: Mike Blumenkrantz <[email protected]>
Date:   Fri Feb 24 14:15:42 2017 -0500

    add event for xwayland init
---
 src/bin/e_comp.c                  | 2 ++
 src/bin/e_comp.h                  | 1 +
 src/modules/xwayland/e_mod_main.c | 1 +
 3 files changed, 4 insertions(+)

diff --git a/src/bin/e_comp.c b/src/bin/e_comp.c
index 8084d94..6fe65a0 100644
--- a/src/bin/e_comp.c
+++ b/src/bin/e_comp.c
@@ -41,6 +41,7 @@ static int _e_comp_log_dom = -1;
 E_API int E_EVENT_COMPOSITOR_RESIZE = -1;
 E_API int E_EVENT_COMPOSITOR_DISABLE = -1;
 E_API int E_EVENT_COMPOSITOR_ENABLE = -1;
+E_API int E_EVENT_COMPOSITOR_XWAYLAND_INIT = -1;
 
 //////////////////////////////////////////////////////////////////////////
 #undef DBG
@@ -1023,6 +1024,7 @@ e_comp_init(void)
    E_EVENT_COMP_OBJECT_ADD = ecore_event_type_new();
    E_EVENT_COMPOSITOR_DISABLE = ecore_event_type_new();
    E_EVENT_COMPOSITOR_ENABLE = ecore_event_type_new();
+   E_EVENT_COMPOSITOR_XWAYLAND_INIT = ecore_event_type_new();
 
    ignores = eina_hash_pointer_new(NULL);
 
diff --git a/src/bin/e_comp.h b/src/bin/e_comp.h
index cf1b0f0..8b21fea 100644
--- a/src/bin/e_comp.h
+++ b/src/bin/e_comp.h
@@ -53,6 +53,7 @@ typedef enum _E_Layer
 
 extern E_API int E_EVENT_COMPOSITOR_DISABLE;
 extern E_API int E_EVENT_COMPOSITOR_ENABLE;
+extern E_API int E_EVENT_COMPOSITOR_XWAYLAND_INIT;
 
 typedef void (*E_Comp_Cb)(void);
 
diff --git a/src/modules/xwayland/e_mod_main.c 
b/src/modules/xwayland/e_mod_main.c
index 7fe5229..45d5ce8 100644
--- a/src/modules/xwayland/e_mod_main.c
+++ b/src/modules/xwayland/e_mod_main.c
@@ -413,6 +413,7 @@ xwl_init(E_Module *m)
    snprintf(disp, sizeof(disp), ":%d", exs->disp);
    DBG("XWayland Listening on display: %s", disp);
    setenv("DISPLAY", disp, 1);
+   ecore_event_add(E_EVENT_COMPOSITOR_XWAYLAND_INIT, NULL, NULL, NULL);
 
    /* setup ecore_fd handlers for abstract and unix socket fds */
    exs->abs_hdlr = 

-- 


Reply via email to