From 8c0955603770bd130ae1290a0fdeca0e6c0039b6 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 31 May 2017 08:18:27 +0200 Subject: qxt-mini: xgrabkey expects keycode, not keysym Reported-by: @miniskipper Issue: #577 --- qxt-mini/qxtglobalshortcut_x11.cpp | 3 +++ 1 file changed, 3 insertions(+) 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)) { -- cgit v1.2.3