From d32957e52cf9b597675ee21207cb7a456b8ee879 Mon Sep 17 00:00:00 2001 From: Alexandre Vicente Date: Tue, 21 Apr 2020 15:48:50 -0300 Subject: [PATCH] X11 header fix --- QHotkey/qhotkey_x11.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/QHotkey/qhotkey_x11.cpp b/QHotkey/qhotkey_x11.cpp index ab3d306..9cb01eb 100644 --- a/QHotkey/qhotkey_x11.cpp +++ b/QHotkey/qhotkey_x11.cpp @@ -29,7 +29,10 @@ protected: private: static const QVector specialModifiers; static const quint32 validModsMask; - + XErrorHandler prevHandler; + xcb_key_press_event_t prevHandledEvent; + xcb_key_press_event_t prevEvent; + static QString formatX11Error(Display *display, int errorCode); class HotkeyErrorHandler { @@ -41,9 +44,6 @@ private: static QString errorString; private: - XErrorHandler prevHandler; - xcb_key_press_event_t prevHandledEvent; - xcb_key_press_event_t prevEvent; QTimer *releaseTimer = nullptr; static int handleError(Display *display, XErrorEvent *error);