]> git.sur5r.net Git - i3/i3/blobdiff - src/bindings.c
Switch to xcb-xkb and libxkbcommon
[i3/i3] / src / bindings.c
index a7039bf2fbd1ae6e88fb3d6823a2a47245c1559d..cd91a3989c452c4d45189f474c39ea8994507b53 100644 (file)
@@ -8,6 +8,8 @@
  */
 #include "all.h"
 
+#include <xkbcommon/xkbcommon.h>
+
 pid_t command_error_nagbar_pid = -1;
 
 /*
@@ -263,8 +265,8 @@ void translate_keysyms(void) {
             continue;
 
         /* We need to translate the symbol to a keycode */
-        keysym = XStringToKeysym(bind->symbol);
-        if (keysym == NoSymbol) {
+        keysym = xkb_keysym_from_name(bind->symbol, XKB_KEYSYM_NO_FLAGS);
+        if (keysym == XKB_KEY_NoSymbol) {
             ELOG("Could not translate string to key symbol: \"%s\"\n",
                  bind->symbol);
             continue;