aboutsummaryrefslogtreecommitdiff
path: root/backend/libinput/backend.c
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-11-22 22:30:40 +0100
committerSimon Zeni <simon@bl4ckb0ne.ca>2021-11-23 14:14:18 +0000
commit1d9c1bcea6a223379af63b4d779d53663eaffcf8 (patch)
treeddab71bb63061a9bb0868fdce1496b52b4fea5a5 /backend/libinput/backend.c
parentc9ba9e82b6a829d6e6d5acc65753b3ade46cefb9 (diff)
input-device: remove wlr_input_device.link
This field's ownership is unclear: it's in wlr_input_device, but it's not managed by the common code, it's up to each individual backend to use it and clean it up. Since this is a backend implementation detail, move it to the backend-specific structs.
Diffstat (limited to 'backend/libinput/backend.c')
-rw-r--r--backend/libinput/backend.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/libinput/backend.c b/backend/libinput/backend.c
index 00145e41..4191f350 100644
--- a/backend/libinput/backend.c
+++ b/backend/libinput/backend.c
@@ -143,9 +143,9 @@ static void backend_destroy(struct wlr_backend *wlr_backend) {
struct wl_list **wlr_devices_ptr;
wl_array_for_each(wlr_devices_ptr, &backend->wlr_device_lists) {
- struct wlr_input_device *wlr_dev, *next;
- wl_list_for_each_safe(wlr_dev, next, *wlr_devices_ptr, link) {
- wlr_input_device_destroy(wlr_dev);
+ struct wlr_libinput_input_device *dev, *tmp;
+ wl_list_for_each_safe(dev, tmp, *wlr_devices_ptr, link) {
+ wlr_input_device_destroy(&dev->wlr_input_device);
}
free(*wlr_devices_ptr);
}