From cdb4d37453d59763998fcb5a73ead8bf83a6a3bd Mon Sep 17 00:00:00 2001 From: Skycoder42 Date: Sun, 14 May 2017 22:27:26 +0200 Subject: [PATCH] replaced XSync by XFlush --- QHotkey/qhotkey_x11.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/QHotkey/qhotkey_x11.cpp b/QHotkey/qhotkey_x11.cpp index 10ddf4e..9c1c209 100644 --- a/QHotkey/qhotkey_x11.cpp +++ b/QHotkey/qhotkey_x11.cpp @@ -106,7 +106,7 @@ bool QHotkeyPrivateX11::registerShortcut(QHotkey::NativeShortcut shortcut) GrabModeAsync, GrabModeAsync); } - XSync(display, False); + XFlush(display); if(errorHandler.hasError) { qCWarning(logQHotkey) << "Failed to register hotkey. Error:" @@ -130,7 +130,7 @@ bool QHotkeyPrivateX11::unregisterShortcut(QHotkey::NativeShortcut shortcut) shortcut.modifier | specialMod, DefaultRootWindow(display)); } - XSync(display, False); + XFlush(display); if(errorHandler.hasError) { qCWarning(logQHotkey) << "Failed to unregister hotkey. Error:"