Skip to content

Commit

Permalink
replaced XSync by XFlush
Browse files Browse the repository at this point in the history
  • Loading branch information
Skycoder42 committed May 14, 2017
1 parent 9eace8f commit cdb4d37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions QHotkey/qhotkey_x11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:"
Expand All @@ -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:"
Expand Down

0 comments on commit cdb4d37

Please sign in to comment.