aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/seatop_default.c
diff options
context:
space:
mode:
authorLibravatar Tudor Brindus <me@tbrindus.ca>2020-06-05 17:12:31 -0400
committerLibravatar Simon Ser <contact@emersion.fr>2020-06-06 13:38:41 +0200
commitd7900c6e5e82406c1ed6a6df2ff3d1896149deff (patch)
treeed8ca52d119bdbc250c3e2e7d5e7f8f63d450449 /sway/input/seatop_default.c
parentAdd wayland_client dependency to common (diff)
downloadsway-d7900c6e5e82406c1ed6a6df2ff3d1896149deff.tar.gz
sway-d7900c6e5e82406c1ed6a6df2ff3d1896149deff.tar.zst
sway-d7900c6e5e82406c1ed6a6df2ff3d1896149deff.zip
common/util: fix `get_current_time_msec` returning microseconds
This commit makes `get_current_time_msec` correctly return milliseconds as opposed to microseconds. It also considers the value of `tv_sec`, so we don't lose occasionally go back in time by one second. Finally, the function is moved into `util.c` so that it can be reused elsewhere without having to consider these pitfalls.
Diffstat (limited to 'sway/input/seatop_default.c')
0 files changed, 0 insertions, 0 deletions