-#include <X11/XkbCommon.h>
+#include "xkbmisc.h"
+#include "X11/extensions/XKBcommon.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
static void print_keysym(const char *s)
{
- KeySym ks = XkbcStringToKeysym(s);
+ KeySym ks = xkb_string_to_keysym(s);
if (ks == NoSymbol)
printf("NoSymbol\n");
else
- printf("0x%lx\n", ks);
+ printf("0x%lX\n", ks);
}
static void print_string(KeySym ks)
{
- char *s = XkbcKeysymToString(ks);
+ char *s = xkb_keysym_to_string(ks);
printf("%s\n", s ? s : "NULL");
}