diff options
Diffstat (limited to 'backend/libinput/touch.c')
-rw-r--r-- | backend/libinput/touch.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/libinput/touch.c b/backend/libinput/touch.c index 481a5787..fba3d568 100644 --- a/backend/libinput/touch.c +++ b/backend/libinput/touch.c @@ -14,6 +14,9 @@ void init_device_touch(struct wlr_libinput_input_device *dev) { wlr_touch_init(wlr_touch, &libinput_touch_impl, name); wlr_touch->base.vendor = libinput_device_get_id_vendor(dev->handle); wlr_touch->base.product = libinput_device_get_id_product(dev->handle); + + libinput_device_get_size(dev->handle, &wlr_touch->width_mm, + &wlr_touch->height_mm); } struct wlr_libinput_input_device *device_from_touch( |