From 4f30105a95fd5958665a1ff394b2fe7a2f91c7fb Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Sun, 22 Oct 2023 21:32:16 +0200 Subject: Ignore relased key events in 'ante' --- userland/ante/ante.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'userland/ante/ante.c') diff --git a/userland/ante/ante.c b/userland/ante/ante.c index 753e7f2..760db28 100644 --- a/userland/ante/ante.c +++ b/userland/ante/ante.c @@ -272,9 +272,11 @@ void run() { int rc; if (0 >= (rc = read(global_w->ws_socket, &e, sizeof(e)))) continue; - if (0 == e.c) + if (e.ev.release) continue; - key_event(e.c); + if (0 == e.ev.c) + continue; + key_event(e.ev.c); } } } -- cgit v1.2.3