From 1f89a19cfcb44ea37329898858e76206449c6480 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Sun, 30 Dec 2012 19:15:40 +0000 Subject: replace XKeycodeToKeysym() with XkbKeycodeToKeysym() The XKeycodeToKeysym() is deprecated. References: http://comments.gmane.org/gmane.comp.misc.suckless/9403 --- src/FbTk/KeyUtil.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/FbTk/KeyUtil.cc b/src/FbTk/KeyUtil.cc index 6ffe2a2..6661bb7 100644 --- a/src/FbTk/KeyUtil.cc +++ b/src/FbTk/KeyUtil.cc @@ -23,6 +23,7 @@ #include "App.hh" #include +#include #include #ifdef HAVE_CSTRING @@ -96,8 +97,8 @@ void KeyUtil::loadModmap() { 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 -- cgit v0.11.2