aboutsummaryrefslogtreecommitdiff
path: root/backend/libinput/keyboard.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-10-30 15:50:31 -0400
committerGitHub <noreply@github.com>2017-10-30 15:50:31 -0400
commitebca06bfe46d18763c79f99382ce7c9717b538a6 (patch)
tree171dfa1636c409cc5b4fbf8f5ddadea035e99a3d /backend/libinput/keyboard.c
parent2e7cfd21e4c884910a703fab44009ba18c20f002 (diff)
parent875a5b446fcf04314ee102624bda7ae18939837e (diff)
Merge pull request #358 from acrisci/refactor/sec-to-msec
refactor input time_sec to time_msec
Diffstat (limited to 'backend/libinput/keyboard.c')
-rw-r--r--backend/libinput/keyboard.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/libinput/keyboard.c b/backend/libinput/keyboard.c
index 00a7ecdf..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_sec = libinput_event_keyboard_get_time(kbevent);
- wlr_event.time_usec = libinput_event_keyboard_get_time_usec(kbevent);
+ 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);