all repos — fluxbox @ 1f89a19cfcb44ea37329898858e76206449c6480

custom fork of the fluxbox windowmanager

replace XKeycodeToKeysym() with XkbKeycodeToKeysym()

The XKeycodeToKeysym() is deprecated.

References: http://comments.gmane.org/gmane.comp.misc.suckless/9403
Sami Kerola kerolasa@iki.fi
commit

1f89a19cfcb44ea37329898858e76206449c6480

parent

1804678cbe74bfcc0435ff075f78d45c0b32bc34

1 files changed, 3 insertions(+), 2 deletions(-)

jump to
M src/FbTk/KeyUtil.ccsrc/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