mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
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.
This commit is contained in:
parent
f1762f428b
commit
63792b38e4
5 changed files with 24 additions and 28 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue