summaryrefslogtreecommitdiff
path: root/userland/ante
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2023-10-22 21:32:16 +0200
committerAnton Kling <anton@kling.gg>2023-10-22 21:32:16 +0200
commit4f30105a95fd5958665a1ff394b2fe7a2f91c7fb (patch)
tree3d1ac36251d3f09ea7401a1c698b855e2fb4b327 /userland/ante
parent4761f12894dcfbbcebca73c2a3af9315eb5b7505 (diff)
Ignore relased key events in 'ante'
Diffstat (limited to 'userland/ante')
-rw-r--r--userland/ante/Makefile2
-rw-r--r--userland/ante/ante.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/userland/ante/Makefile b/userland/ante/Makefile
index 412b302..36d4442 100644
--- a/userland/ante/Makefile
+++ b/userland/ante/Makefile
@@ -1,4 +1,4 @@
-CC="/home/anton/prj/osdev/sysroot/bin/i686-sb-gcc"
+CC="i686-sb-gcc"
CFLAGS = -ggdb -O2 -Wall -Wextra -pedantic -static
LIB=-L../libgui -lgui -lgcc
INC=-I../libgui/
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);
}
}
}