Skip to content
Myr

wayland: reset keyboard modifiers on keyboard leave

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Daniel Eklöf · committed by Daniel Eklöf · parent 5255c0a · Browse files · 2 files+11 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+11 added−0 removed

  • other:+11 added−0 removed

2 files+11 added−0 removed

modified:CHANGELOG.md+1 added
49 unmodified lines
50### Removed51### Fixed5253* Crash when `--match-workers >= 100` ([#507][507]).54* Keyboard modifiers not being reset on keyboard leave events.5556[507]: https://codeberg.org/dnkl/fuzzel/issues/5075758
912 unmodified lines
modified:wayland.c+10 added
482 unmodified lines
483 struct seat *seat = data;484 repeat_stop(&seat->kbd.repeat, -1);485 seat->kbd.serial = 0;486487 if (seat->kbd.xkb_compose_state != NULL)488 xkb_compose_state_reset(seat->kbd.xkb_compose_state);489490 if (seat->kbd.xkb_state != NULL && seat->kbd.xkb_keymap != NULL) {491 const xkb_layout_index_t layout_count = xkb_keymap_num_layouts(seat->kbd.xkb_keymap);492493 for (xkb_layout_index_t i = 0; i < layout_count; i++)494 xkb_state_update_mask(seat->kbd.xkb_state, 0, 0, 0, i, i, i);495 }496497 if (seat->wayl->conf->exit_on_kb_focus_loss)498 seat->wayl->status = EXIT;499}500
2033 unmodified lines