aboutsummaryrefslogtreecommitdiff
path: root/backend/libinput/switch.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/switch.c
parent887516d004ca5c5f35e99fd36f4b30f649f1c2f8 (diff)
backend/libinput: remove wlr_input_device_impl
Diffstat (limited to 'backend/libinput/switch.c')
-rw-r--r--backend/libinput/switch.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/backend/libinput/switch.c b/backend/libinput/switch.c
index 9562e185..0e710f09 100644
--- a/backend/libinput/switch.c
+++ b/backend/libinput/switch.c
@@ -8,6 +8,8 @@
#include "backend/libinput.h"
#include "util/signal.h"
+const struct wlr_switch_impl libinput_switch_impl;
+
struct wlr_switch *create_libinput_switch(
struct libinput_device *libinput_dev) {
assert(libinput_dev);
@@ -17,7 +19,7 @@ struct wlr_switch *create_libinput_switch(
return NULL;
}
const char *name = libinput_device_get_name(libinput_dev);
- wlr_switch_init(wlr_switch, NULL, name);
+ wlr_switch_init(wlr_switch, &libinput_switch_impl, name);
wlr_log(WLR_DEBUG, "Created switch for device %s", name);
wlr_switch->base.vendor = libinput_device_get_id_vendor(libinput_dev);
wlr_switch->base.product = libinput_device_get_id_product(libinput_dev);