diff options
author | Simon Zeni <simon@bl4ckb0ne.ca> | 2022-02-09 16:03:12 -0500 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2022-02-21 16:48:43 -0500 |
commit | 91ba28e020092089eb9cc960530355de68c60a3d (patch) | |
tree | fee441c8caab6771d875abeac46aa776edeabc0e /backend/libinput/pointer.c | |
parent | 887516d004ca5c5f35e99fd36f4b30f649f1c2f8 (diff) |
backend/libinput: remove wlr_input_device_impl
Diffstat (limited to 'backend/libinput/pointer.c')
-rw-r--r-- | backend/libinput/pointer.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/backend/libinput/pointer.c b/backend/libinput/pointer.c index 305c43d9..706ace7b 100644 --- a/backend/libinput/pointer.c +++ b/backend/libinput/pointer.c @@ -2,12 +2,13 @@ #include <libinput.h> #include <stdlib.h> #include <wlr/backend/session.h> -#include <wlr/interfaces/wlr_pointer.h> #include <wlr/types/wlr_input_device.h> #include <wlr/util/log.h> #include "backend/libinput.h" #include "util/signal.h" +const struct wlr_pointer_impl libinput_pointer_impl = {0}; + struct wlr_pointer *create_libinput_pointer( struct libinput_device *libinput_dev) { assert(libinput_dev); @@ -17,7 +18,7 @@ struct wlr_pointer *create_libinput_pointer( return NULL; } const char *name = libinput_device_get_name(libinput_dev); - wlr_pointer_init(wlr_pointer, NULL, name); + wlr_pointer_init(wlr_pointer, &libinput_pointer_impl, name); wlr_pointer->base.vendor = libinput_device_get_id_vendor(libinput_dev); wlr_pointer->base.product = libinput_device_get_id_product(libinput_dev); return wlr_pointer; |