summaryrefslogtreecommitdiff
path: root/src/managers/KeybindManager.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2025-01-24 20:30:12 +0000
committerVaxry <vaxry@vaxry.net>2025-01-24 20:30:21 +0000
commitd8f79d7678f428738f3173020109bd7b7fbd0840 (patch)
tree8efc7a843e1f82cd7fcfb3c544124075a7d68782 /src/managers/KeybindManager.cpp
parent80b2fd135b45f2c2e41ceb312314908f6a3e7b30 (diff)
core: add --verify-config to verify the config with Hyprland
fixes #9135
Diffstat (limited to 'src/managers/KeybindManager.cpp')
-rw-r--r--src/managers/KeybindManager.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp
index 4706c1e1..e2191bc6 100644
--- a/src/managers/KeybindManager.cpp
+++ b/src/managers/KeybindManager.cpp
@@ -172,8 +172,11 @@ CKeybindManager::CKeybindManager() {
},
nullptr);
- g_pEventLoopManager->addTimer(m_pLongPressTimer);
- g_pEventLoopManager->addTimer(m_pRepeatKeyTimer);
+ // null in --verify-config mode
+ if (g_pEventLoopManager) {
+ g_pEventLoopManager->addTimer(m_pLongPressTimer);
+ g_pEventLoopManager->addTimer(m_pRepeatKeyTimer);
+ }
static auto P = g_pHookSystem->hookDynamic("configReloaded", [this](void* hk, SCallbackInfo& info, std::any param) {
// clear cuz realloc'd