input: don’t crash if xkbcommon cannot find a compose file

Handle xkb_compose_table_new_from_locale() returning NULL. When this
happens, log a warning that “dead keys” will be disabled, and make
sure to never de-reference the compose table pointer.

Closes #170
This commit is contained in:
Daniel Eklöf 2020-10-19 18:30:19 +02:00
parent e85ace0b0d
commit 9e7783596a
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 28 additions and 8 deletions

View file

@ -19,6 +19,10 @@
### Fixed
* Crash when libxkbcommon cannot find a suitable libX11 _compose_
file. Note that foot will run, but without support for dead keys.
(https://codeberg.org/dnkl/foot/issues/170).
## 1.5.2