From 62c1ed572fbc145f779836f00541ae90c84fbcc0 Mon Sep 17 00:00:00 2001 From: Jasson Date: Mon, 8 Jul 2024 12:18:15 -0400 Subject: [PATCH] Framebuffer fix + moved headers --- src/core/hyprlock.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/core/hyprlock.cpp b/src/core/hyprlock.cpp index fa30c31..2dc881c 100644 --- a/src/core/hyprlock.cpp +++ b/src/core/hyprlock.cpp @@ -829,7 +829,8 @@ void CHyprlock::startKeyRepeat(xkb_keysym_t sym) { if (m_iKeebRepeatDelay <= 0) return; - m_pKeyRepeatTimer = addTimer(std::chrono::milliseconds(m_iKeebRepeatDelay), [sym](std::shared_ptr self, void* data) { g_pHyprlock->repeatKey(sym); }, nullptr); + m_pKeyRepeatTimer = addTimer( + std::chrono::milliseconds(m_iKeebRepeatDelay), [sym](std::shared_ptr self, void* data) { g_pHyprlock->repeatKey(sym); }, nullptr); } void CHyprlock::repeatKey(xkb_keysym_t sym) { @@ -840,7 +841,8 @@ void CHyprlock::repeatKey(xkb_keysym_t sym) { // This condition is for backspace and delete keys, but should also be ok for other keysyms since our buffer won't be empty anyways if (bool CONTINUE = m_sPasswordState.passBuffer.length() > 0; CONTINUE) - m_pKeyRepeatTimer = addTimer(std::chrono::milliseconds(m_iKeebRepeatRate), [sym](std::shared_ptr self, void* data) { g_pHyprlock->repeatKey(sym); }, nullptr); + m_pKeyRepeatTimer = addTimer( + std::chrono::milliseconds(m_iKeebRepeatRate), [sym](std::shared_ptr self, void* data) { g_pHyprlock->repeatKey(sym); }, nullptr); renderAllOutputs(); } @@ -1049,7 +1051,8 @@ std::vector> CHyprlock::getTimers() { } void CHyprlock::enqueueForceUpdateTimers() { - addTimer(std::chrono::milliseconds(1), [](std::shared_ptr self, void* data) { forceUpdateTimers(); }, nullptr, false); + addTimer( + std::chrono::milliseconds(1), [](std::shared_ptr self, void* data) { forceUpdateTimers(); }, nullptr, false); } void CHyprlock::spawnAsync(const std::string& args) {