aboutsummaryrefslogtreecommitdiff
path: root/backend/drm
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-11-06 11:34:55 +0100
committerSimon Ser <contact@emersion.fr>2020-11-19 22:47:49 +0100
commit0e76f92de7f5ee53a3d35ad3128b5224b9a305aa (patch)
tree88cca37d3cd6064481dd0dbb88c80d11ad29c66d /backend/drm
parentcd95d70df094e59b625073688e5fd3e783183424 (diff)
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.
Diffstat (limited to 'backend/drm')
-rw-r--r--backend/drm/backend.c4
1 files changed, 2 insertions, 2 deletions
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;