aboutsummaryrefslogtreecommitdiff
path: root/backend/libinput/backend.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-02-12 09:12:31 +0100
committeremersion <contact@emersion.fr>2018-02-12 09:12:31 +0100
commit5e58d46cc1a90810e3ee76203cee8ca2f14fb462 (patch)
treea5019d87cdc121842ab7cf867fbcac0fde4ccff0 /backend/libinput/backend.c
parent3497e53516d96ad67b26115e2e06218f68e1114d (diff)
Add wlr_signal_emit_safe
Diffstat (limited to 'backend/libinput/backend.c')
-rw-r--r--backend/libinput/backend.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/backend/libinput/backend.c b/backend/libinput/backend.c
index 86477947..dfbe1d20 100644
--- a/backend/libinput/backend.c
+++ b/backend/libinput/backend.c
@@ -4,6 +4,7 @@
#include <wlr/backend/session.h>
#include <wlr/backend/interface.h>
#include <wlr/util/log.h>
+#include <wlr/util/signal.h>
#include "backend/libinput.h"
static int wlr_libinput_open_restricted(const char *path,
@@ -106,13 +107,13 @@ static void wlr_libinput_backend_destroy(struct wlr_backend *wlr_backend) {
struct wl_list *wlr_devices = backend->wlr_device_lists.items[i];
struct wlr_input_device *wlr_dev, *next;
wl_list_for_each_safe(wlr_dev, next, wlr_devices, link) {
- wl_signal_emit(&backend->backend.events.input_remove, wlr_dev);
+ wlr_signal_emit_safe(&backend->backend.events.input_remove, wlr_dev);
wlr_input_device_destroy(wlr_dev);
}
free(wlr_devices);
}
- wl_signal_emit(&wlr_backend->events.destroy, wlr_backend);
+ wlr_signal_emit_safe(&wlr_backend->events.destroy, wlr_backend);
wl_list_remove(&backend->display_destroy.link);
wl_list_remove(&backend->session_signal.link);