aboutsummaryrefslogtreecommitdiff
path: root/backend/session/session.c
diff options
context:
space:
mode:
Diffstat (limited to 'backend/session/session.c')
-rw-r--r--backend/session/session.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/backend/session/session.c b/backend/session/session.c
index f1cce8bc..3fcac3e3 100644
--- a/backend/session/session.c
+++ b/backend/session/session.c
@@ -79,6 +79,7 @@ struct wlr_session *wlr_session_create(struct wl_display *disp) {
session->active = true;
wl_signal_init(&session->session_signal);
+ wl_signal_init(&session->events.destroy);
wl_list_init(&session->devices);
session->udev = udev_new();
@@ -125,6 +126,7 @@ void wlr_session_destroy(struct wlr_session *session) {
return;
}
+ wlr_signal_emit_safe(&session->events.destroy, session);
wl_list_remove(&session->display_destroy.link);
wl_event_source_remove(session->udev_event);