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 <cp.michael@samsung.com>
This commit is contained in:
Chris Michael 2014-09-05 15:00:00 -04:00
parent 60090e6065
commit 5ebc4c76b7
1 changed files with 6 additions and 1 deletions

View File

@ -243,8 +243,13 @@ fail:
} }
static Eina_Bool 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 /* NB: SIGUSR1 comes from XWayland Server when it has finished
* initialized. */ * initialized. */