mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-07 13:29:49 -05:00
backend/session: Remove session_impl
libseat provides all session functionality, so there is no longer need for a session backend abstraction. The libseat device ID, seat handle and event loop handle are moved to the main wlr_session and wlr_device structs.
This commit is contained in:
parent
3f87c2caea
commit
7f09085461
7 changed files with 140 additions and 284 deletions
|
|
@ -6,10 +6,11 @@
|
|||
#include <sys/types.h>
|
||||
#include <wayland-server-core.h>
|
||||
|
||||
struct session_impl;
|
||||
struct libseat;
|
||||
|
||||
struct wlr_device {
|
||||
int fd;
|
||||
int device_id;
|
||||
dev_t dev;
|
||||
struct wl_list link;
|
||||
|
||||
|
|
@ -19,7 +20,6 @@ struct wlr_device {
|
|||
};
|
||||
|
||||
struct wlr_session {
|
||||
const struct session_impl *impl;
|
||||
/*
|
||||
* Signal for when the session becomes active/inactive.
|
||||
* It's called when we swap virtual terminal.
|
||||
|
|
@ -37,6 +37,9 @@ struct wlr_session {
|
|||
struct udev_monitor *mon;
|
||||
struct wl_event_source *udev_event;
|
||||
|
||||
struct libseat *seat_handle;
|
||||
struct wl_event_source *libseat_event;
|
||||
|
||||
struct wl_list devices;
|
||||
|
||||
struct wl_display *display;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue