diff options
author | emersion <contact@emersion.fr> | 2018-02-12 09:12:31 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-02-12 09:12:31 +0100 |
commit | 5e58d46cc1a90810e3ee76203cee8ca2f14fb462 (patch) | |
tree | a5019d87cdc121842ab7cf867fbcac0fde4ccff0 /xwayland/xwayland.c | |
parent | 3497e53516d96ad67b26115e2e06218f68e1114d (diff) |
Add wlr_signal_emit_safe
Diffstat (limited to 'xwayland/xwayland.c')
-rw-r--r-- | xwayland/xwayland.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/xwayland/xwayland.c b/xwayland/xwayland.c index 6c700cc5..7c57b6c0 100644 --- a/xwayland/xwayland.c +++ b/xwayland/xwayland.c @@ -16,8 +16,9 @@ #include <stdlib.h> #include <errno.h> #include <wayland-server.h> -#include "wlr/util/log.h" -#include "wlr/xwayland.h" +#include <wlr/xwayland.h> +#include <wlr/util/log.h> +#include <wlr/util/signal.h> #include "sockets.h" #include "wlr/xwm.h" @@ -237,7 +238,7 @@ static int xserver_handle_ready(int signal_number, void *data) { snprintf(display_name, sizeof(display_name), ":%d", wlr_xwayland->display); setenv("DISPLAY", display_name, true); - wl_signal_emit(&wlr_xwayland->events.ready, wlr_xwayland); + wlr_signal_emit_safe(&wlr_xwayland->events.ready, wlr_xwayland); /* ready is a one-shot signal, fire and forget */ wl_signal_init(&wlr_xwayland->events.ready); |