mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-08 16:11:57 -07:00
fix segfault in inactive sessions
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user