summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}
}
}