summaryrefslogtreecommitdiffstatshomepage
path: root/xkbcat.c
diff options
context:
space:
mode:
Diffstat (limited to 'xkbcat.c')
-rw-r--r--xkbcat.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/xkbcat.c b/xkbcat.c
index 762c394..b7be2aa 100644
--- a/xkbcat.c
+++ b/xkbcat.c
@@ -3,6 +3,9 @@
#include <X11/XKBlib.h>
#include <X11/extensions/XInput2.h>
+#define XK_LATIN1
+#include <X11/keysymdef.h>
+
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
@@ -145,6 +148,11 @@ int main(int argc, char *argv[]) {
continue;
}
}
+
+ if ((s >= XK_A && s <= XK_Z) || (s >= XK_a && s <= XK_z)) {
+ continue;
+ }
+
char *str = XKeysymToString(s);
if (NULL == str)
continue;