mirror of
https://github.com/hyprwm/hyprlock.git
synced 2025-05-13 05:40:42 +01:00
Framebuffer fix + moved headers
This commit is contained in:
parent
cd632d29ff
commit
62c1ed572f
1 changed files with 6 additions and 3 deletions
|
@ -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<CTimer> self, void* data) { g_pHyprlock->repeatKey(sym); }, nullptr);
|
||||
m_pKeyRepeatTimer = addTimer(
|
||||
std::chrono::milliseconds(m_iKeebRepeatDelay), [sym](std::shared_ptr<CTimer> 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<CTimer> self, void* data) { g_pHyprlock->repeatKey(sym); }, nullptr);
|
||||
m_pKeyRepeatTimer = addTimer(
|
||||
std::chrono::milliseconds(m_iKeebRepeatRate), [sym](std::shared_ptr<CTimer> self, void* data) { g_pHyprlock->repeatKey(sym); }, nullptr);
|
||||
|
||||
renderAllOutputs();
|
||||
}
|
||||
|
@ -1049,7 +1051,8 @@ std::vector<std::shared_ptr<CTimer>> CHyprlock::getTimers() {
|
|||
}
|
||||
|
||||
void CHyprlock::enqueueForceUpdateTimers() {
|
||||
addTimer(std::chrono::milliseconds(1), [](std::shared_ptr<CTimer> self, void* data) { forceUpdateTimers(); }, nullptr, false);
|
||||
addTimer(
|
||||
std::chrono::milliseconds(1), [](std::shared_ptr<CTimer> self, void* data) { forceUpdateTimers(); }, nullptr, false);
|
||||
}
|
||||
|
||||
void CHyprlock::spawnAsync(const std::string& args) {
|
||||
|
|
Loading…
Reference in a new issue