summaryrefslogtreecommitdiffhomepage
path: root/qxt-mini/qxtglobalshortcut_x11.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-03-09 10:50:38 +0100
committerStanislaw Halik <sthalik@misaki.pl>2017-03-09 10:50:38 +0100
commitc90b6b5ff1aec5d32f0b54890f6d62c25ed19a0e (patch)
treed4fbdb12b239e810135c8f07482c8fa937ac9869 /qxt-mini/qxtglobalshortcut_x11.cpp
parent1a1fcd1ecf5f503fc1a4ee6b6da7c6b1975b298a (diff)
qxt-mini: fix hotkeys for Linux
Sadly the keys won't pass through the application anymore. Issue: #570 Closes: #570
Diffstat (limited to 'qxt-mini/qxtglobalshortcut_x11.cpp')
-rw-r--r--qxt-mini/qxtglobalshortcut_x11.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qxt-mini/qxtglobalshortcut_x11.cpp b/qxt-mini/qxtglobalshortcut_x11.cpp
index e04a782a..a2e47ade 100644
--- a/qxt-mini/qxtglobalshortcut_x11.cpp
+++ b/qxt-mini/qxtglobalshortcut_x11.cpp
@@ -212,7 +212,7 @@ public:
{
QxtX11ErrorHandler errorHandler;
- XGrabKey(display(), keycode, AllMods, window, True,
+ XGrabKey(display(), keycode, AnyModifier, window, True,
GrabModeAsync, GrabModeAsync);
if (errorHandler.error) {
@@ -229,7 +229,7 @@ public:
if (keybinding::decf(keycode))
{
QxtX11ErrorHandler errorHandler;
- XUngrabKey(display(), keycode, AllMods, window);
+ XUngrabKey(display(), keycode, AnyModifier, window);
return !errorHandler.error;
}
return true;