aboutsummaryrefslogtreecommitdiff
path: root/backend/libinput/events.c
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2022-03-02 14:17:31 -0500
committerKirill Primak <vyivel@eclair.cafe>2022-03-07 16:37:41 +0000
commit0d2be496a899a0c6736dc504ba482e647bd3aa03 (patch)
tree52dc80ee5ea11fd3454280f8d32d1d0e276ba680 /backend/libinput/events.c
parent51cd3c07264e1c4967c5baea3f6629ac01334e97 (diff)
interface/wlr_switch: rework destroy sequence
The destroy callback in wlr_switch_impl has been removed. The function `wlr_switch_finish` has been introduced to clean up the resources owned by a wlr_switch. `wlr_input_device_destroy` no longer destroys the wlr_switch, attempting to destroy a wlr_switch will result in a no-op. The field `name` has been added to the wlr_switch_impl to be able to identify a given wlr_switch device.
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);