aboutsummaryrefslogtreecommitdiff
path: root/backend/libinput/tablet_pad.c
diff options
context:
space:
mode:
authorSimon Zeni <simon@bl4ckb0ne.ca>2022-02-09 16:03:12 -0500
committerSimon Zeni <simon@bl4ckb0ne.ca>2022-02-21 16:48:43 -0500
commit91ba28e020092089eb9cc960530355de68c60a3d (patch)
treefee441c8caab6771d875abeac46aa776edeabc0e /backend/libinput/tablet_pad.c
parent887516d004ca5c5f35e99fd36f4b30f649f1c2f8 (diff)
backend/libinput: remove wlr_input_device_impl
Diffstat (limited to 'backend/libinput/tablet_pad.c')
-rw-r--r--backend/libinput/tablet_pad.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/backend/libinput/tablet_pad.c b/backend/libinput/tablet_pad.c
index 2f1da363..50b8ad6e 100644
--- a/backend/libinput/tablet_pad.c
+++ b/backend/libinput/tablet_pad.c
@@ -66,6 +66,8 @@ static void add_pad_group_from_libinput(struct wlr_tablet_pad *pad,
wl_list_insert(&pad->groups, &group->link);
}
+const struct wlr_tablet_pad_impl libinput_tablet_pad_impl;
+
struct wlr_tablet_pad *create_libinput_tablet_pad(
struct libinput_device *libinput_dev) {
assert(libinput_dev);
@@ -76,7 +78,7 @@ struct wlr_tablet_pad *create_libinput_tablet_pad(
return NULL;
}
const char *name = libinput_device_get_name(libinput_dev);
- wlr_tablet_pad_init(wlr_tablet_pad, NULL, name);
+ wlr_tablet_pad_init(wlr_tablet_pad, &libinput_tablet_pad_impl, name);
wlr_tablet_pad->base.vendor = libinput_device_get_id_vendor(libinput_dev);
wlr_tablet_pad->base.product = libinput_device_get_id_product(libinput_dev);