diff options
Diffstat (limited to 'backend/session')
-rw-r--r-- | backend/session/direct-freebsd.c | 4 | ||||
-rw-r--r-- | backend/session/direct.c | 4 | ||||
-rw-r--r-- | backend/session/libseat.c | 4 | ||||
-rw-r--r-- | backend/session/logind.c | 8 | ||||
-rw-r--r-- | backend/session/session.c | 2 |
5 files changed, 11 insertions, 11 deletions
diff --git a/backend/session/direct-freebsd.c b/backend/session/direct-freebsd.c index e4b6c792..302b0ff4 100644 --- a/backend/session/direct-freebsd.c +++ b/backend/session/direct-freebsd.c @@ -115,7 +115,7 @@ static int vt_handler(int signo, void *data) { if (session->base.active) { session->base.active = false; - wlr_signal_emit_safe(&session->base.session_signal, session); + wlr_signal_emit_safe(&session->base.events.active, NULL); wl_list_for_each(dev, &session->base.devices, link) { if (ioctl(dev->fd, DRM_IOCTL_VERSION, &dv) == 0) { @@ -134,7 +134,7 @@ static int vt_handler(int signo, void *data) { } session->base.active = true; - wlr_signal_emit_safe(&session->base.session_signal, session); + wlr_signal_emit_safe(&session->base.events.active, NULL); } return 1; diff --git a/backend/session/direct.c b/backend/session/direct.c index f9041070..b6d9f06a 100644 --- a/backend/session/direct.c +++ b/backend/session/direct.c @@ -126,7 +126,7 @@ static int vt_handler(int signo, void *data) { if (session->base.active) { session->base.active = false; - wlr_signal_emit_safe(&session->base.session_signal, session); + wlr_signal_emit_safe(&session->base.events.active, NULL); struct wlr_device *dev; wl_list_for_each(dev, &session->base.devices, link) { @@ -149,7 +149,7 @@ static int vt_handler(int signo, void *data) { } session->base.active = true; - wlr_signal_emit_safe(&session->base.session_signal, session); + wlr_signal_emit_safe(&session->base.events.active, NULL); } return 1; diff --git a/backend/session/libseat.c b/backend/session/libseat.c index 751adcd3..180ce215 100644 --- a/backend/session/libseat.c +++ b/backend/session/libseat.c @@ -35,13 +35,13 @@ struct libseat_session { static void handle_enable_seat(struct libseat *seat, void *data) { struct libseat_session *session = data; session->base.active = true; - wlr_signal_emit_safe(&session->base.session_signal, session); + wlr_signal_emit_safe(&session->base.events.active, NULL); } static void handle_disable_seat(struct libseat *seat, void *data) { struct libseat_session *session = data; session->base.active = false; - wlr_signal_emit_safe(&session->base.session_signal, session); + wlr_signal_emit_safe(&session->base.events.active, NULL); libseat_disable_seat(session->seat); } diff --git a/backend/session/logind.c b/backend/session/logind.c index 30519a78..8859f1a2 100644 --- a/backend/session/logind.c +++ b/backend/session/logind.c @@ -306,7 +306,7 @@ static int pause_device(sd_bus_message *msg, void *userdata, if (major == DRM_MAJOR && strcmp(type, "gone") != 0) { assert(session->has_drm); session->base.active = false; - wlr_signal_emit_safe(&session->base.session_signal, session); + wlr_signal_emit_safe(&session->base.events.active, NULL); } if (strcmp(type, "pause") == 0) { @@ -348,7 +348,7 @@ static int resume_device(sd_bus_message *msg, void *userdata, if (!session->base.active) { session->base.active = true; - wlr_signal_emit_safe(&session->base.session_signal, session); + wlr_signal_emit_safe(&session->base.events.active, NULL); } } @@ -407,7 +407,7 @@ static int session_properties_changed(sd_bus_message *msg, void *userdata, if (session->base.active != active) { session->base.active = active; - wlr_signal_emit_safe(&session->base.session_signal, session); + wlr_signal_emit_safe(&session->base.events.active, NULL); } return 0; } else { @@ -447,7 +447,7 @@ static int session_properties_changed(sd_bus_message *msg, void *userdata, if (session->base.active != active) { session->base.active = active; - wlr_signal_emit_safe(&session->base.session_signal, session); + wlr_signal_emit_safe(&session->base.events.active, NULL); } return 0; } diff --git a/backend/session/session.c b/backend/session/session.c index c7808212..a25e78f2 100644 --- a/backend/session/session.c +++ b/backend/session/session.c @@ -101,7 +101,7 @@ static void handle_display_destroy(struct wl_listener *listener, void *data) { } void session_init(struct wlr_session *session) { - wl_signal_init(&session->session_signal); + wl_signal_init(&session->events.active); wl_signal_init(&session->events.add_drm_card); wl_signal_init(&session->events.destroy); wl_list_init(&session->devices); |