diff options
Diffstat (limited to 'qxt-mini/qxtglobalshortcut_p.h')
-rw-r--r-- | qxt-mini/qxtglobalshortcut_p.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/qxt-mini/qxtglobalshortcut_p.h b/qxt-mini/qxtglobalshortcut_p.h index 9eadbc7f..1835f956 100644 --- a/qxt-mini/qxtglobalshortcut_p.h +++ b/qxt-mini/qxtglobalshortcut_p.h @@ -53,13 +53,17 @@ public: bool unsetShortcut(); static bool error; - static int ref; static bool eventFilter(void* message); bool nativeEventFilter(const QByteArray & eventType, void * message, long * result) override; static void activateShortcut(quint32 nativeKey, quint32 nativeMods); private: + struct event_filter_installer; + friend struct event_filter_installer; + struct tag {}; + explicit QxtGlobalShortcutPrivate(tag); + static quint32 nativeKeycode(Qt::Key keycode); static quint32 nativeModifiers(Qt::KeyboardModifiers modifiers); @@ -67,6 +71,8 @@ private: static bool unregisterShortcut(quint32 nativeKey, quint32 nativeMods); static QHash<QPair<quint32, quint32>, QxtGlobalShortcut*> shortcuts; + + static void ensure_event_filter(); }; #endif // QXTGLOBALSHORTCUT_P_H |