aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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;