From 875a5b446fcf04314ee102624bda7ae18939837e Mon Sep 17 00:00:00 2001 From: Tony Crisci Date: Mon, 30 Oct 2017 15:43:06 -0400 Subject: remove time usec --- backend/libinput/keyboard.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'backend/libinput/keyboard.c') diff --git a/backend/libinput/keyboard.c b/backend/libinput/keyboard.c index 29a6b7a4..065d8ead 100644 --- a/backend/libinput/keyboard.c +++ b/backend/libinput/keyboard.c @@ -54,8 +54,8 @@ void handle_keyboard_key(struct libinput_event *event, struct libinput_event_keyboard *kbevent = libinput_event_get_keyboard_event(event); struct wlr_event_keyboard_key wlr_event = { 0 }; - wlr_event.time_usec = libinput_event_keyboard_get_time_usec(kbevent); - wlr_event.time_msec = (uint32_t)(wlr_event.time_usec / 1000); + wlr_event.time_msec = + usec_to_msec(libinput_event_keyboard_get_time_usec(kbevent)); wlr_event.keycode = libinput_event_keyboard_get_key(kbevent); enum libinput_key_state state = libinput_event_keyboard_get_key_state(kbevent); -- cgit v1.2.3