Skip to content

Commit

Permalink
fix segfault in inactive sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
vaxerski committed Aug 29, 2022
1 parent 0949537 commit 6c8ce73
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/managers/KeybindManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 6c8ce73

Please sign in to comment.