mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-03 09:01:40 -05:00
backend/session: introduce wlr_device_change_event
This struct contains additional information for session device change events, such as the DRM connector ID that has changed.
This commit is contained in:
parent
3e801d68f2
commit
2ff4e113e2
2 changed files with 41 additions and 2 deletions
|
|
@ -15,7 +15,7 @@ struct wlr_device {
|
|||
struct wl_list link;
|
||||
|
||||
struct {
|
||||
struct wl_signal change;
|
||||
struct wl_signal change; // struct wlr_device_change_event
|
||||
struct wl_signal remove;
|
||||
} events;
|
||||
};
|
||||
|
|
@ -57,6 +57,22 @@ struct wlr_session_add_event {
|
|||
const char *path;
|
||||
};
|
||||
|
||||
enum wlr_device_change_type {
|
||||
WLR_DEVICE_HOTPLUG = 1,
|
||||
};
|
||||
|
||||
struct wlr_device_hotplug_event {
|
||||
uint32_t connector_id;
|
||||
uint32_t prop_id;
|
||||
};
|
||||
|
||||
struct wlr_device_change_event {
|
||||
enum wlr_device_change_type type;
|
||||
union {
|
||||
struct wlr_device_hotplug_event hotplug;
|
||||
};
|
||||
};
|
||||
|
||||
/*
|
||||
* Opens a session, taking control of the current virtual terminal.
|
||||
* This should not be called if another program is already in control
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue