replace XKeycodeToKeysym() with XkbKeycodeToKeysym() The XKeycodeToKeysym() is deprecated. References: http://comments.gmane.org/gmane.comp.misc.suckless/9403
Sami Kerola kerolasa@iki.fi
1 files changed,
3 insertions(+),
2 deletions(-)
jump to
M
src/FbTk/KeyUtil.cc
→
src/FbTk/KeyUtil.cc
@@ -23,6 +23,7 @@ #include "KeyUtil.hh"
#include "App.hh" #include <X11/keysym.h> +#include <X11/XKBlib.h> #include <string> #ifdef HAVE_CSTRING@@ -96,8 +97,8 @@
if (m_modmap->modifiermap[realkey] == 0) continue; - KeySym ks = XKeycodeToKeysym(App::instance()->display(), - m_modmap->modifiermap[realkey], 0); + KeySym ks = XkbKeycodeToKeysym(App::instance()->display(), + m_modmap->modifiermap[realkey], 0, 0); switch (ks) { // we just want to clean the Lock modifier, not specifically the