aboutsummaryrefslogtreecommitdiff
path: root/include/backend
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-08-11 19:28:07 +0200
committerIsaac Freund <mail@isaacfreund.com>2023-11-23 11:15:07 +0000
commit63792b38e46ae1741a6492d3c0183cb9566e4c9f (patch)
tree17d21d15f1dc5145c03aa95e55a1b2bdf65c898f /include/backend
parentf1762f428b0ef2989c81f57ea9e810403d34d946 (diff)
backend/session: take wl_event_loop instead of wl_display
wl_display holds a lot more than wlr_session needs: wlr_session only needs to wait for a FD to become readable, but wl_display provides full access to the Wayland client and protocol objects. Switch to wl_event_loop to better reflect the above.
Diffstat (limited to 'include/backend')
-rw-r--r--include/backend/drm/monitor.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/backend/drm/monitor.h b/include/backend/drm/monitor.h
index 51817193..bf5bda2d 100644
--- a/include/backend/drm/monitor.h
+++ b/include/backend/drm/monitor.h
@@ -10,6 +10,7 @@ struct wlr_drm_backend_monitor {
struct wlr_backend *multi;
struct wlr_backend *primary_drm;
struct wlr_session *session;
+ struct wl_display *display;
struct wl_listener multi_destroy;
struct wl_listener primary_drm_destroy;
@@ -19,6 +20,6 @@ struct wlr_drm_backend_monitor {
struct wlr_drm_backend_monitor *drm_backend_monitor_create(
struct wlr_backend *multi, struct wlr_backend *primary_drm,
- struct wlr_session *session);
+ struct wlr_session *session, struct wl_display *display);
#endif