Skip to content

Commit

Permalink
fix xwayland crash
Browse files Browse the repository at this point in the history
thanks ikalco
  • Loading branch information
vaxerski committed Jul 20, 2024
1 parent 3886702 commit 0f09940
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/devices/IKeyboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 0f09940

Please sign in to comment.