diff options
author | Tony Crisci <tony@dubstepdish.com> | 2017-10-30 06:40:06 -0400 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2017-10-30 06:40:06 -0400 |
commit | a224e74fadd6393e25ec7392115892aec87dc11a (patch) | |
tree | ea0106122b9bb2e0369c3a6499e11477e806b454 /backend/libinput/keyboard.c | |
parent | 57efc3417f2131d643f8677093ec9b3e8301016e (diff) |
refactor input time_sec to time_msec
Diffstat (limited to 'backend/libinput/keyboard.c')
-rw-r--r-- | backend/libinput/keyboard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/libinput/keyboard.c b/backend/libinput/keyboard.c index 00a7ecdf..29a6b7a4 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_sec = libinput_event_keyboard_get_time(kbevent); wlr_event.time_usec = libinput_event_keyboard_get_time_usec(kbevent); + wlr_event.time_msec = (uint32_t)(wlr_event.time_usec / 1000); wlr_event.keycode = libinput_event_keyboard_get_key(kbevent); enum libinput_key_state state = libinput_event_keyboard_get_key_state(kbevent); |