summaryrefslogtreecommitdiffhomepage
path: root/qxt-mini/qxtglobalshortcut_x11.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-05-31 08:18:27 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-05-31 08:18:27 +0200
commit8c0955603770bd130ae1290a0fdeca0e6c0039b6 (patch)
treeacaa7886aee1d3856c82426403ba4ad9a886918b /qxt-mini/qxtglobalshortcut_x11.cpp
parent7bb7cbe192817f6f5594d3498cb08ef4a655fa79 (diff)
qxt-mini: xgrabkey expects keycode, not keysym
Reported-by: @miniskipper Issue: #577
Diffstat (limited to 'qxt-mini/qxtglobalshortcut_x11.cpp')
-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))
{