From 98ab29ea3c898ae3b9521c907044dbc3576fac9b Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 24 Feb 2017 14:15:42 -0500 Subject: [PATCH] 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 8084d94c8..6fe65a01e 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 cf1b0f096..8b21fea86 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 7fe522991..45d5ce84d 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 =