aboutsummaryrefslogtreecommitdiff
path: root/backend/libinput/events.c
diff options
context:
space:
mode:
authorDominique Martinet <asmadeus@codewreck.org>2017-11-01 19:35:39 +0100
committerDominique Martinet <asmadeus@codewreck.org>2017-11-01 19:37:35 +0100
commite3ee2cd9c7e9abe6614dded927787f8138f739f4 (patch)
treef3234f8f9ede9c1ba7a8d918b022a86a0d3c7986 /backend/libinput/events.c
parentf451ea36393e8cedf29fd9877689b33ae770a8dc (diff)
rootston exit: fix libinput destroy
The wlr_list -> wl_list rework changed 'wlr_devices' to wl_list, but missed its use on destroy.
Diffstat (limited to 'backend/libinput/events.c')
-rw-r--r--backend/libinput/events.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/libinput/events.c b/backend/libinput/events.c
index 053cab02..5da45c67 100644
--- a/backend/libinput/events.c
+++ b/backend/libinput/events.c
@@ -26,6 +26,7 @@ struct wlr_input_device *get_appropriate_device(
static void wlr_libinput_device_destroy(struct wlr_input_device *_dev) {
struct wlr_libinput_input_device *dev = (struct wlr_libinput_input_device *)_dev;
libinput_device_unref(dev->handle);
+ wl_list_remove(&dev->wlr_input_device.link);
free(dev);
}