Remove width_mm from tablet events

This commit is contained in:
Drew DeVault 2018-03-28 11:40:35 -04:00
parent 324b9d910d
commit ac219cbda6
7 changed files with 36 additions and 24 deletions

View file

@ -46,6 +46,8 @@ static struct wlr_input_device *allocate_device(
return NULL;
}
struct wlr_input_device *wlr_dev = &wlr_libinput_dev->wlr_input_device;
libinput_device_get_size(libinput_dev,
&wlr_dev->width_mm, &wlr_dev->height_mm);
wl_list_insert(wlr_devices, &wlr_dev->link);
wlr_libinput_dev->handle = libinput_dev;
libinput_device_ref(libinput_dev);