summaryrefslogtreecommitdiffhomepage
path: root/qxt-mini
diff options
context:
space:
mode:
Diffstat (limited to 'qxt-mini')
-rw-r--r--qxt-mini/qxtglobalshortcut_x11.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/qxt-mini/qxtglobalshortcut_x11.cpp b/qxt-mini/qxtglobalshortcut_x11.cpp
index ec3e9939..d54e3605 100644
--- a/qxt-mini/qxtglobalshortcut_x11.cpp
+++ b/qxt-mini/qxtglobalshortcut_x11.cpp
@@ -159,6 +159,8 @@ public:
{
int native_code = x.first, native_mods = x.second;
+ native_code = XKeysymToKeycode(display(), native_code);
+
if (keybinding::incf(native_code, native_mods))
{
QxtX11ErrorHandler errorHandler;
@@ -195,6 +197,7 @@ public:
for (pair x : keycodes)
{
int native_code = x.first, native_mods = x.second;
+ native_code = XKeysymToKeycode(display(), native_code);
if (keybinding::decf(native_code, native_mods))
{