Merge branch 'deferred-cursor-move' into '0.17'

Draft: Deferred cursor move

See merge request wlroots/wlroots!4340
This commit is contained in:
Daniel Hill 2024-06-28 02:20:31 +00:00
commit 6746cf248e
6 changed files with 111 additions and 7 deletions

View file

@ -4,8 +4,6 @@
#include "util/time.h"
static const long NSEC_PER_SEC = 1000000000;
int64_t timespec_to_msec(const struct timespec *a) {
return (int64_t)a->tv_sec * 1000 + a->tv_nsec / 1000000;
}
@ -34,3 +32,7 @@ void timespec_sub(struct timespec *r, const struct timespec *a,
r->tv_nsec += NSEC_PER_SEC;
}
}
int32_t mhz_to_nsec(int32_t mhz) {
return 1000000000000LL / mhz;
}