aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/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/wlr/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/wlr/backend')
-rw-r--r--include/wlr/backend/session.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/wlr/backend/session.h b/include/wlr/backend/session.h
index 3583b317..b61de852 100644
--- a/include/wlr/backend/session.h
+++ b/include/wlr/backend/session.h
@@ -42,8 +42,8 @@ struct wlr_session {
struct wl_list devices;
- struct wl_display *display;
- struct wl_listener display_destroy;
+ struct wl_event_loop *event_loop;
+ struct wl_listener event_loop_destroy;
struct {
struct wl_signal active;
@@ -80,7 +80,7 @@ struct wlr_device_change_event {
*
* Returns NULL on error.
*/
-struct wlr_session *wlr_session_create(struct wl_display *disp);
+struct wlr_session *wlr_session_create(struct wl_event_loop *loop);
/*
* Closes a previously opened session and restores the virtual terminal.