aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk')
-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