mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-03 09:01:40 -05:00
types/wlr_input_device: move width_mm and height_mm fields to wlr_tablet and wlr_touch
This commit is contained in:
parent
a92e5f8d46
commit
96ccc50c57
6 changed files with 15 additions and 8 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue