aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-08-29 11:17:42 +0200
committervaxerski <[email protected]>2022-08-29 11:17:42 +0200
commit6c8ce734fb8e487add1c28efc2f86ff075f8d679 (patch)
treebb5c668022617b9086cf8eedacaa9c8ed95788d8
parent09495375b52de47ddd97a46be1159721d207c862 (diff)
downloadHyprland-6c8ce734fb8e487add1c28efc2f86ff075f8d679.tar.gz
Hyprland-6c8ce734fb8e487add1c28efc2f86ff075f8d679.zip
fix segfault in inactive sessionsv0.12.0beta
-rw-r--r--src/managers/KeybindManager.cpp6
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;