input: handle XKB errors

* Don’t de-reference the xkb context/keymap/state if we failed to
  instantiate them.
* Don’t try to send a translated utf8 key sequence if the translation
  failed.
* Handle xkb_compose_state_get_utf8() and xkb_state_key_get_utf8()
  returning more than 64 bytes.

This _may_ fix #171.
This commit is contained in:
Daniel Eklöf 2020-10-20 21:01:33 +02:00
parent 4c3d2cfc7d
commit 0d319f8793
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 76 additions and 60 deletions

View file

@ -53,6 +53,8 @@
(https://codeberg.org/dnkl/foot/issues/170).
* Restored window size when window is un-tiled.
* XCursor shape in CSD corners when window is tiled.
* Error handling when processing keyboard input (maybe
https://codeberg.org/dnkl/foot/issues/171).
### Security