diff options
author | vaxerski <[email protected]> | 2022-08-29 11:17:42 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-08-29 11:17:42 +0200 |
commit | 6c8ce734fb8e487add1c28efc2f86ff075f8d679 (patch) | |
tree | bb5c668022617b9086cf8eedacaa9c8ed95788d8 | |
parent | 09495375b52de47ddd97a46be1159721d207c862 (diff) | |
download | Hyprland-0.12.0beta.tar.gz Hyprland-0.12.0beta.zip |
fix segfault in inactive sessionsv0.12.0beta
-rw-r--r-- | src/managers/KeybindManager.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index cde9ee22..43993570 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -127,6 +127,12 @@ void CKeybindManager::updateXKBTranslationState() { } bool CKeybindManager::onKeyEvent(wlr_keyboard_key_event* e, SKeyboard* pKeyboard) { + if (!g_pCompositor->m_bSessionActive) { + m_dPressedKeycodes.clear(); + m_dPressedKeysyms.clear(); + return true; + } + if (pKeyboard->isVirtual) return true; |