summaryrefslogtreecommitdiff
path: root/src/evdev-mt-touchpad.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/evdev-mt-touchpad.c')
-rw-r--r--src/evdev-mt-touchpad.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/evdev-mt-touchpad.c b/src/evdev-mt-touchpad.c
index d4f02eb6..6560ac3e 100644
--- a/src/evdev-mt-touchpad.c
+++ b/src/evdev-mt-touchpad.c
@@ -608,7 +608,13 @@ tp_process_trackpoint_button(struct tp_dispatch *tp,
{
struct evdev_dispatch *dispatch;
struct input_event event;
- struct input_event syn_report = {{ 0, 0 }, EV_SYN, SYN_REPORT, 0 };
+ struct input_event syn_report = {
+ .input_event_sec = 0,
+ .input_event_usec = 0,
+ .type = EV_SYN,
+ .code = SYN_REPORT,
+ .value = 0
+ };
if (!tp->buttons.trackpoint)
return;
@@ -616,7 +622,8 @@ tp_process_trackpoint_button(struct tp_dispatch *tp,
dispatch = tp->buttons.trackpoint->dispatch;
event = *e;
- syn_report.time = e->time;
+ syn_report.input_event_sec = e->input_event_sec;
+ syn_report.input_event_usec = e->input_event_usec;
switch (event.code) {
case BTN_0: