aboutsummaryrefslogtreecommitdiff
path: root/backend/libinput/backend.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-04-05 15:04:49 -0400
committerDrew DeVault <sir@cmpwn.com>2018-04-05 15:04:49 -0400
commit6710de9878a07a185d28f9cec71e3f1b3d3407ab (patch)
treedec44173de7b133fbac0230ac2530af4c4ff0bc7 /backend/libinput/backend.c
parent41fccb8507bcc1b18cff0c785c5697f9f0bdceda (diff)
parent19b576734e75d65ed6e28b13131f20f6444cba48 (diff)
Merge branch 'master' into xwayland-dnd
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);
+}