]> git.sur5r.net Git - i3/i3/commitdiff
Replace deprecated XKeycodeToKeysym() with XkbKeycodeToKeysym()
authorDavid Coppa <dcoppa@gmail.com>
Wed, 30 May 2012 09:11:08 +0000 (11:11 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Wed, 30 May 2012 15:24:43 +0000 (17:24 +0200)
i3-config-wizard/cfgparse.y

index bbe119371430b0084605096dd9e0e8293fe824ab..e5a86868e9139f477f9d772e037ac1763f205936 100644 (file)
@@ -13,6 +13,7 @@
 #include <string.h>
 
 #include <X11/Xlib.h>
+#include <X11/XKBlib.h>
 
 #include "libi3.h"
 
@@ -139,7 +140,7 @@ bindcode:
              * more likely for special characters). */
             level = 1;
         }
-        KeySym sym = XKeycodeToKeysym(dpy, $4, level);
+        KeySym sym = XkbKeycodeToKeysym(dpy, $4, 0, level);
         char *str = XKeysymToString(sym);
         char *modifiers = modifier_to_string($<number>3);
         // TODO: modifier to string