core: add --verify-config to verify the config with Hyprland
fixes #9135
This commit is contained in:
parent
80b2fd135b
commit
d8f79d7678
7 changed files with 69 additions and 25 deletions
|
|
@ -34,7 +34,8 @@ static int wlTick(SP<CEventLoopTimer> self, void* data) {
|
|||
|
||||
CHyprAnimationManager::CHyprAnimationManager() {
|
||||
m_pAnimationTimer = SP<CEventLoopTimer>(new CEventLoopTimer(std::chrono::microseconds(500), wlTick, nullptr));
|
||||
g_pEventLoopManager->addTimer(m_pAnimationTimer);
|
||||
if (g_pEventLoopManager) // null in --verify-config mode
|
||||
g_pEventLoopManager->addTimer(m_pAnimationTimer);
|
||||
|
||||
addBezierWithName("linear", Vector2D(0.0, 0.0), Vector2D(1.0, 1.0));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue