From 5e58d46cc1a90810e3ee76203cee8ca2f14fb462 Mon Sep 17 00:00:00 2001 From: emersion Date: Mon, 12 Feb 2018 09:12:31 +0100 Subject: Add wlr_signal_emit_safe --- xwayland/xwayland.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'xwayland/xwayland.c') 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 #include #include -#include "wlr/util/log.h" -#include "wlr/xwayland.h" +#include +#include +#include #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); -- cgit v1.2.3