diff options
author | Simon Zeni <simon@bl4ckb0ne.ca> | 2022-02-01 11:51:50 -0500 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2022-02-21 17:11:32 +0000 |
commit | edfb332b24a2a1e014de10eba1c5bf2b84538d2f (patch) | |
tree | 825be950a750cbb672f7e5033b54d02b42745c3d /backend/libinput | |
parent | 7dfee50350180e38c7c02b79c5a3ee454dc552fd (diff) |
types/wlr_touch: add base wlr_input_device
wlr_touch now owns its wlr_input_device. It will be initialized when the
tablet tool is initialized, and finished when the touch is destroyed.
Diffstat (limited to 'backend/libinput')
-rw-r--r-- | backend/libinput/touch.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/backend/libinput/touch.c b/backend/libinput/touch.c index ee987a91..d1f99611 100644 --- a/backend/libinput/touch.c +++ b/backend/libinput/touch.c @@ -16,7 +16,10 @@ struct wlr_touch *create_libinput_touch( wlr_log(WLR_ERROR, "Unable to allocate wlr_touch"); return NULL; } - wlr_touch_init(wlr_touch, NULL); + const char *name = libinput_device_get_name(libinput_dev); + wlr_touch_init(wlr_touch, NULL, name); + wlr_touch->base.vendor = libinput_device_get_id_vendor(libinput_dev); + wlr_touch->base.product = libinput_device_get_id_product(libinput_dev); return wlr_touch; } |