add event for xwayland init
This commit is contained in:
parent
18b452778a
commit
98ab29ea3c
|
@ -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_RESIZE = -1;
|
||||||
E_API int E_EVENT_COMPOSITOR_DISABLE = -1;
|
E_API int E_EVENT_COMPOSITOR_DISABLE = -1;
|
||||||
E_API int E_EVENT_COMPOSITOR_ENABLE = -1;
|
E_API int E_EVENT_COMPOSITOR_ENABLE = -1;
|
||||||
|
E_API int E_EVENT_COMPOSITOR_XWAYLAND_INIT = -1;
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
#undef DBG
|
#undef DBG
|
||||||
|
@ -1023,6 +1024,7 @@ e_comp_init(void)
|
||||||
E_EVENT_COMP_OBJECT_ADD = ecore_event_type_new();
|
E_EVENT_COMP_OBJECT_ADD = ecore_event_type_new();
|
||||||
E_EVENT_COMPOSITOR_DISABLE = ecore_event_type_new();
|
E_EVENT_COMPOSITOR_DISABLE = ecore_event_type_new();
|
||||||
E_EVENT_COMPOSITOR_ENABLE = 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);
|
ignores = eina_hash_pointer_new(NULL);
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,7 @@ typedef enum _E_Layer
|
||||||
|
|
||||||
extern E_API int E_EVENT_COMPOSITOR_DISABLE;
|
extern E_API int E_EVENT_COMPOSITOR_DISABLE;
|
||||||
extern E_API int E_EVENT_COMPOSITOR_ENABLE;
|
extern E_API int E_EVENT_COMPOSITOR_ENABLE;
|
||||||
|
extern E_API int E_EVENT_COMPOSITOR_XWAYLAND_INIT;
|
||||||
|
|
||||||
typedef void (*E_Comp_Cb)(void);
|
typedef void (*E_Comp_Cb)(void);
|
||||||
|
|
||||||
|
|
|
@ -413,6 +413,7 @@ xwl_init(E_Module *m)
|
||||||
snprintf(disp, sizeof(disp), ":%d", exs->disp);
|
snprintf(disp, sizeof(disp), ":%d", exs->disp);
|
||||||
DBG("XWayland Listening on display: %s", disp);
|
DBG("XWayland Listening on display: %s", disp);
|
||||||
setenv("DISPLAY", disp, 1);
|
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 */
|
/* setup ecore_fd handlers for abstract and unix socket fds */
|
||||||
exs->abs_hdlr =
|
exs->abs_hdlr =
|
||||||
|
|
Loading…
Reference in New Issue