aboutsummaryrefslogtreecommitdiff
path: root/backend/libinput/events.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-03-28 14:11:39 -0400
committerGitHub <noreply@github.com>2018-03-28 14:11:39 -0400
commit5dd022da1300185780ddf4b70014a6f8f306de85 (patch)
tree331f0e5f7b748387a338b678b625bf5a1ae7f693 /backend/libinput/events.c
parent52d621e0979c3b393753d1c67b2b0fd23212ca41 (diff)
parent3813121fefb1734ed2c2537759e6eead1c0d9a74 (diff)
Merge pull request #765 from swaywm/transformed-events
Use libinput transformed events instead of width_mm/height_mm
Diffstat (limited to 'backend/libinput/events.c')
-rw-r--r--backend/libinput/events.c2
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);