mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-22 21:06:01 +01:00
fix segfault in inactive sessions
This commit is contained in:
parent
09495375b5
commit
6c8ce734fb
1 changed files with 6 additions and 0 deletions
|
@ -127,6 +127,12 @@ void CKeybindManager::updateXKBTranslationState() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CKeybindManager::onKeyEvent(wlr_keyboard_key_event* e, SKeyboard* pKeyboard) {
|
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)
|
if (pKeyboard->isVirtual)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue