From 0e76f92de7f5ee53a3d35ad3128b5224b9a305aa Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 6 Nov 2020 11:34:55 +0100 Subject: backend/session: replace session_signal with events.active This is more idiomatic wlroots API. The new name makes it clear that the signal is emitted when wlr_session.active changes. --- backend/drm/backend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backend/drm') diff --git a/backend/drm/backend.c b/backend/drm/backend.c index 3b7ed93c..b2da7cb3 100644 --- a/backend/drm/backend.c +++ b/backend/drm/backend.c @@ -85,7 +85,7 @@ bool wlr_backend_is_drm(struct wlr_backend *b) { static void session_signal(struct wl_listener *listener, void *data) { struct wlr_drm_backend *drm = wl_container_of(listener, drm, session_signal); - struct wlr_session *session = data; + struct wlr_session *session = drm->session; if (session->active) { wlr_log(WLR_INFO, "DRM fd resumed"); @@ -170,7 +170,7 @@ struct wlr_backend *wlr_drm_backend_create(struct wl_display *display, } drm->session_signal.notify = session_signal; - wl_signal_add(&session->session_signal, &drm->session_signal); + wl_signal_add(&session->events.active, &drm->session_signal); if (!check_drm_features(drm)) { goto error_event; -- cgit v1.2.3