diff options
author | Simon Zeni <simon@bl4ckb0ne.ca> | 2022-03-08 16:54:28 -0500 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2022-03-17 13:44:19 -0400 |
commit | 96ccc50c5753346e852625fe37418a54386c7804 (patch) | |
tree | bcbdf4f165d054d6e8d61d472898f3e140ea24a4 /backend/libinput/tablet_tool.c | |
parent | a92e5f8d4634a5d24c2fbab4a7fe0256558a96e6 (diff) |
types/wlr_input_device: move width_mm and height_mm fields to wlr_tablet and wlr_touch
Diffstat (limited to 'backend/libinput/tablet_tool.c')
-rw-r--r-- | backend/libinput/tablet_tool.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/libinput/tablet_tool.c b/backend/libinput/tablet_tool.c index c778ccc2..0aa960ab 100644 --- a/backend/libinput/tablet_tool.c +++ b/backend/libinput/tablet_tool.c @@ -25,6 +25,9 @@ void init_device_tablet(struct wlr_libinput_input_device *dev) { wlr_tablet->base.vendor = libinput_device_get_id_vendor(dev->handle); wlr_tablet->base.product = libinput_device_get_id_product(dev->handle); + libinput_device_get_size(dev->handle, &wlr_tablet->width_mm, + &wlr_tablet->height_mm); + struct udev_device *udev = libinput_device_get_udev_device(dev->handle); char **dst = wl_array_add(&wlr_tablet->paths, sizeof(char *)); *dst = strdup(udev_device_get_syspath(udev)); |