void-packages/srcpkgs/libmanette/patches/time64.patch

14 lines
637 B
Diff

--- src/manette-device.c 2019-03-11 10:04:16.000000000 +0100
+++ src/manette-device.c 2020-12-11 16:39:51.368792737 +0100
@@ -415,8 +415,8 @@
ManetteEvent manette_event;
manette_event.any.device = self;
- manette_event.any.time = evdev_event->time.tv_sec * 1000 +
- evdev_event->time.tv_usec / 1000;
+ manette_event.any.time = evdev_event->input_event_sec * 1000 +
+ evdev_event->input_event_usec / 1000;
manette_event.any.hardware_type = evdev_event->type;
manette_event.any.hardware_code = evdev_event->code;
manette_event.any.hardware_value = evdev_event->value;