fix segfault in inactive sessions

This commit is contained in:
vaxerski 2022-08-29 11:17:42 +02:00
parent 09495375b5
commit 6c8ce734fb

View file

@ -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;