From a37f538ca0cc6d504358eb797150751b60c4511b Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 3 Nov 2021 13:37:24 +0100 Subject: Introduce WLR_DEVICE_LEASE events This will allow the DRM backend to reload its lessee list. --- backend/session/session.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'backend/session') diff --git a/backend/session/session.c b/backend/session/session.c index 382f3d60..e83a8b4c 100644 --- a/backend/session/session.c +++ b/backend/session/session.c @@ -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; } } -- cgit v1.2.3