aboutsummaryrefslogtreecommitdiff
path: root/backend/libinput/events.c
diff options
context:
space:
mode:
Diffstat (limited to 'backend/libinput/events.c')
-rw-r--r--backend/libinput/events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/libinput/events.c b/backend/libinput/events.c
index 22fdab55..dcf46bee 100644
--- a/backend/libinput/events.c
+++ b/backend/libinput/events.c
@@ -21,7 +21,7 @@ void destroy_libinput_input_device(struct wlr_libinput_input_device *dev) {
wlr_pointer_finish(&dev->pointer);
}
if (dev->switch_device.impl) {
- wlr_switch_destroy(&dev->switch_device);
+ wlr_switch_finish(&dev->switch_device);
}
if (dev->touch.impl) {
wlr_touch_destroy(&dev->touch);