aboutsummaryrefslogtreecommitdiff
path: root/backend/libinput/events.c
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2022-03-02 15:58:44 -0500
committerKirill Primak <vyivel@eclair.cafe>2022-03-07 16:37:41 +0000
commit8d3cb94b41b3c21350e16e38a00f4e33941c33d5 (patch)
tree1bb4949645852f26224e9b5089c134d923d90d3c /backend/libinput/events.c
parenta5b032cb1e9a3510d7722640a8970532be4d7b57 (diff)
interface/wlr_tablet_tool: rework destroy sequence
The destroy callback in wlr_tablet_tool_impl has been removed. The function `wlr_tablet_tool_finish` has been introduced to clean up the resources owned by a wlr_tablet_tool. `wlr_input_device_destroy` no longer destroys the wlr_tablet_tool, attempting to destroy a wlr_tablet_tool will result in a no-op. The field `name` has been added to the wlr_tablet_tool_impl to be able to identify a given wlr_tablet_tool 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 35c58b53..f032b4a5 100644
--- a/backend/libinput/events.c
+++ b/backend/libinput/events.c
@@ -27,7 +27,7 @@ void destroy_libinput_input_device(struct wlr_libinput_input_device *dev) {
wlr_touch_destroy(&dev->touch);
}
if (dev->tablet.impl) {
- wlr_tablet_destroy(&dev->tablet);
+ finish_device_tablet(dev);
}
if (dev->tablet_pad.impl) {
finish_device_tablet_pad(dev);