--- a/src/X11Handler.h Sun Mar 28 21:02:02 2021 +0200
+++ b/src/X11Handler.h Tue Mar 30 20:26:08 2021 +0200
@@ -72,7 +72,7 @@
int key = -1;
int button = -1;
unsigned long screen = 0;
- unsigned long delay = 1;
+ unsigned long delay = CurrentTime;
int x = -1;
int y = -1;
} currentEvent;
@@ -133,7 +133,7 @@
if (attributeIndex % attributes.size() == 0) {
if (currentEvent.type == Event::Type::KEY) {
- XTestFakeKeyEvent(display.display, currentEvent.key, currentEvent.state == Event::State::PRESSED, 1);
+ XTestFakeKeyEvent(display.display, currentEvent.key, currentEvent.state == Event::State::PRESSED, currentEvent.delay);
} else if (currentEvent.type == Event::Type::BUTTON) {
XTestFakeButtonEvent(display.display, currentEvent.button, currentEvent.state == Event::State::PRESSED, currentEvent.delay);
} else if (currentEvent.type == Event::Type::MOTION) {