mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
Introduce WLR_DEVICE_LEASE events
This will allow the DRM backend to reload its lessee list.
This commit is contained in:
parent
d0bb7df630
commit
a37f538ca0
2 changed files with 9 additions and 0 deletions
|
|
@ -157,6 +157,14 @@ static void read_udev_change_event(struct wlr_device_change_event *event,
|
|||
if (prop != NULL) {
|
||||
hotplug->prop_id = strtoul(prop, NULL, 10);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
const char *lease = udev_device_get_property_value(udev_dev, "LEASE");
|
||||
if (lease != NULL && strcmp(lease, "1") == 0) {
|
||||
event->type = WLR_DEVICE_LEASE;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue