From 8f09e55b45a4fb4bdf718c8ef6fd61a4cb4dd754 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Fri, 5 Sep 2014 15:00:00 -0400 Subject: [PATCH] xwayland: Check for sigusr1 in event handler XWayland servers sends us SIGUSR1 when it has finished initializing, so we should be checking the signal number when we get the event. Signed-off-by: Chris Michael --- src/modules/xwayland/e_mod_main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/modules/xwayland/e_mod_main.c b/src/modules/xwayland/e_mod_main.c index a6dc8bf85..f1f614447 100644 --- a/src/modules/xwayland/e_mod_main.c +++ b/src/modules/xwayland/e_mod_main.c @@ -243,8 +243,13 @@ fail: } static Eina_Bool -_cb_signal_event(void *data EINA_UNUSED, int type EINA_UNUSED, void *event EINA_UNUSED) +_cb_signal_event(void *data EINA_UNUSED, int type EINA_UNUSED, void *event) { + Ecore_Event_Signal_User *ev; + + ev = event; + if (ev->number != 1) return ECORE_CALLBACK_RENEW; + /* NB: SIGUSR1 comes from XWayland Server when it has finished * initialized. */