From 91ba28e020092089eb9cc960530355de68c60a3d Mon Sep 17 00:00:00 2001 From: Simon Zeni Date: Wed, 9 Feb 2022 16:03:12 -0500 Subject: backend/libinput: remove wlr_input_device_impl --- backend/libinput/tablet_pad.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'backend/libinput/tablet_pad.c') 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); -- cgit v1.2.3