mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-20 06:47:19 -04:00
Merge branch 'deferred-cursor-move' into '0.17'
Draft: Deferred cursor move See merge request wlroots/wlroots!4340
This commit is contained in:
commit
6746cf248e
6 changed files with 111 additions and 7 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue