Skip to content
Myr

wayland: ignore key events when we don't have an xkb keymap

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

This is almost always a compositor issue, but common enough that we should work around it. Which we do by simply ignoring the key event. Closes #482

authored by Daniel Eklöf · committed by Daniel Eklöf · parent 225cdf2 · Browse files · 2 files+10 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+10 added−0 removed

  • other:+10 added−0 removed

2 files+10 added−0 removed

modified:CHANGELOG.md+3 added
60 unmodified lines
61* Wayland protocol error: _"layer surface has never been configured"_62 ([#426][426]).63* Entries with `NoDisplay=True` being included in the total (entry)64 count.65* Crash if compositor sends a key event without having sent a keymap66 event before that ([#482][482]).6768[426]: https://codeberg.org/dnkl/fuzzel/issues/42669[482]: https://codeberg.org/dnkl/fuzzel/issues/482707172### Security73### Contributors
833 unmodified lines
modified:wayland.c+7 added
773 unmodified lines
774{775 struct seat *seat = data;776 struct wayland *wayl = seat->wayl;777778 if (seat->kbd.xkb == NULL ||779 seat->kbd.xkb_keymap == NULL ||780 seat->kbd.xkb_state == NULL)781 {782 return;783 }784785 if (state == XKB_KEY_UP) {786 repeat_stop(&seat->kbd.repeat, key);787 return;788 }
1716 unmodified lines