aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--backend/backend.c4
-rw-r--r--backend/libinput/backend.c4
-rw-r--r--include/backend/libinput.h2
-rw-r--r--include/wlr/backend.h2
4 files changed, 6 insertions, 6 deletions
diff --git a/backend/backend.c b/backend/backend.c
index c67be617..bd8d04d1 100644
--- a/backend/backend.c
+++ b/backend/backend.c
@@ -150,7 +150,3 @@ struct wlr_backend *wlr_backend_autocreate(struct wl_display *display) {
return backend;
}
-
-uint32_t usec_to_msec(uint64_t usec) {
- return (uint32_t)(usec / 1000);
-}
diff --git a/backend/libinput/backend.c b/backend/libinput/backend.c
index 71fe0d93..e2a1165f 100644
--- a/backend/libinput/backend.c
+++ b/backend/libinput/backend.c
@@ -189,3 +189,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);
+}
diff --git a/include/backend/libinput.h b/include/backend/libinput.h
index f828c310..180984b5 100644
--- a/include/backend/libinput.h
+++ b/include/backend/libinput.h
@@ -83,4 +83,6 @@ void handle_tablet_pad_ring(struct libinput_event *event,
void handle_tablet_pad_strip(struct libinput_event *event,
struct libinput_device *device);
+uint32_t usec_to_msec(uint64_t usec);
+
#endif
diff --git a/include/wlr/backend.h b/include/wlr/backend.h
index 00dc9fdc..840c9ba4 100644
--- a/include/wlr/backend.h
+++ b/include/wlr/backend.h
@@ -23,6 +23,4 @@ void wlr_backend_destroy(struct wlr_backend *backend);
struct wlr_egl *wlr_backend_get_egl(struct wlr_backend *backend);
struct wlr_renderer *wlr_backend_get_renderer(struct wlr_backend *backend);
-uint32_t usec_to_msec(uint64_t usec);
-
#endif