mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
Add wlr_signal_emit_safe
This commit is contained in:
parent
3497e53516
commit
5e58d46cc1
43 changed files with 265 additions and 182 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue