fix xwayland crash

thanks ikalco
This commit is contained in:
Vaxry 2024-07-11 12:10:45 +02:00
parent 38867021d8
commit 0f09940c32

View file

@ -116,10 +116,9 @@ void IKeyboard::setKeymap(const SStringRuleNames& rules) {
if (IDX != XKB_MOD_INVALID)
modifiersState.locked |= (uint32_t)1 << IDX;
}
if (modifiersState.locked != 0)
keyboardEvents.modifiers.emit(SModifiersEvent{.locked = modifiersState.locked});
updateModifiers(modifiersState.depressed, modifiersState.latched, modifiersState.locked, modifiersState.group);
}
for (size_t i = 0; i < LEDNAMES.size(); ++i) {
ledIndexes.at(i) = xkb_map_led_get_index(xkbKeymap, LEDNAMES.at(i));