aboutsummaryrefslogtreecommitdiff
path: root/backend/libinput/backend.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-04-03 12:50:05 -0400
committerDrew DeVault <sir@cmpwn.com>2018-04-03 15:09:53 -0400
commit56deff41b6c2c6190894068994ba403978068bad (patch)
treea6d15024dd3101e918cdedad4a26084e4dbacf1f /backend/libinput/backend.c
parent3a8c7f283d042abb88aef225f3631ff4f35d57c0 (diff)
Implement input inhibit in rootston
Diffstat (limited to 'backend/libinput/backend.c')
-rw-r--r--backend/libinput/backend.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/backend/libinput/backend.c b/backend/libinput/backend.c
index 1e7c1ad4..ef33df0a 100644
--- a/backend/libinput/backend.c
+++ b/backend/libinput/backend.c
@@ -191,3 +191,7 @@ struct libinput_device *wlr_libinput_get_device_handle(struct wlr_input_device *
struct wlr_libinput_input_device *dev = (struct wlr_libinput_input_device *)_dev;
return dev->handle;
}
+
+uint32_t usec_to_msec(uint64_t usec) {
+ return (uint32_t)(usec / 1000);
+}