forked from enlightenment/enlightenment
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:
parent
f49acd38b4
commit
8f09e55b45
|
@ -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. */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue