mirror of
https://github.com/swaywm/sway.git
synced 2025-04-05 20:07:46 +03:00
input: Move get_current_time_msec in from util
get_current_time_msec is only used in cursor.c, so we can move it in and make it static. This is primarily intended to avoid a symbol collision with wlroots, which we unfortunately do not have a good solution for yet.
This commit is contained in:
parent
f81dc1ecc0
commit
80315217f7
3 changed files with 7 additions and 12 deletions
include
|
@ -29,12 +29,6 @@ enum movement_unit parse_movement_unit(const char *unit);
|
|||
int parse_movement_amount(int argc, char **argv,
|
||||
struct movement_amount *amount);
|
||||
|
||||
/**
|
||||
* Get the current time, in milliseconds.
|
||||
*/
|
||||
|
||||
uint32_t get_current_time_msec(void);
|
||||
|
||||
/**
|
||||
* Wrap i into the range [0, max]
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue