aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSami Kerola <kerolasa@iki.fi>2012-12-30 19:15:40 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2012-12-30 19:31:25 (GMT)
commit1f89a19cfcb44ea37329898858e76206449c6480 (patch)
tree521a35160bc5446c10e68acfe4ed90cfd33826e6
parent1804678cbe74bfcc0435ff075f78d45c0b32bc34 (diff)
downloadfluxbox-1f89a19cfcb44ea37329898858e76206449c6480.zip
fluxbox-1f89a19cfcb44ea37329898858e76206449c6480.tar.bz2
replace XKeycodeToKeysym() with XkbKeycodeToKeysym()
The XKeycodeToKeysym() is deprecated. References: http://comments.gmane.org/gmane.comp.misc.suckless/9403
-rw-r--r--src/FbTk/KeyUtil.cc5
1 files 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 @@
23#include "App.hh" 23#include "App.hh"
24 24
25#include <X11/keysym.h> 25#include <X11/keysym.h>
26#include <X11/XKBlib.h>
26 27
27#include <string> 28#include <string>
28#ifdef HAVE_CSTRING 29#ifdef HAVE_CSTRING
@@ -96,8 +97,8 @@ void KeyUtil::loadModmap() {
96 if (m_modmap->modifiermap[realkey] == 0) 97 if (m_modmap->modifiermap[realkey] == 0)
97 continue; 98 continue;
98 99
99 KeySym ks = XKeycodeToKeysym(App::instance()->display(), 100 KeySym ks = XkbKeycodeToKeysym(App::instance()->display(),
100 m_modmap->modifiermap[realkey], 0); 101 m_modmap->modifiermap[realkey], 0, 0);
101 102
102 switch (ks) { 103 switch (ks) {
103 // we just want to clean the Lock modifier, not specifically the 104 // we just want to clean the Lock modifier, not specifically the