From 091de12bf4b91c9326c84a11ce10d51ca41fee0b Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Wed, 21 Jun 2017 12:47:53 +1200 Subject: Changed session signal to only emit on DRM changes --- include/backend/drm.h | 3 +-- include/wlr/session.h | 11 +++-------- 2 files changed, 4 insertions(+), 10 deletions(-) (limited to 'include') diff --git a/include/backend/drm.h b/include/backend/drm.h index 10850d1f..7d90ce57 100644 --- a/include/backend/drm.h +++ b/include/backend/drm.h @@ -34,8 +34,7 @@ struct wlr_backend_state { struct wlr_backend *backend; struct wl_event_source *drm_event; - struct wl_listener device_paused; - struct wl_listener device_resumed; + struct wl_listener session_signal; struct wl_listener drm_invalidated; uint32_t taken_crtcs; diff --git a/include/wlr/session.h b/include/wlr/session.h index 28ccb526..4a5b2174 100644 --- a/include/wlr/session.h +++ b/include/wlr/session.h @@ -1,22 +1,17 @@ #ifndef WLR_SESSION_H #define WLR_SESSION_H +#include #include #include struct session_impl; -// Passed to the listeners of device_paused/resumed -struct device_arg { - dev_t dev; - int fd; // Only for device_resumed -}; - struct wlr_session { const struct session_impl *impl; - struct wl_signal device_paused; - struct wl_signal device_resumed; + bool active; + struct wl_signal session_signal; }; struct wlr_session *wlr_session_start(struct wl_display *disp); -- cgit v1.2.3