diff options
Diffstat (limited to 'backend/libinput/events.c')
| -rw-r--r-- | backend/libinput/events.c | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/backend/libinput/events.c b/backend/libinput/events.c index d92de830..da7b2be4 100644 --- a/backend/libinput/events.c +++ b/backend/libinput/events.c @@ -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); | 
