Fix issues after librime 1.12.0 upgrade

One of the patches came upstream. The other one was written by myself using [1] as a reference.

Unfortunately I cannot upstream the patch as the fcitx-rime repository has been archived.

[1] https://github.com/osfans/trime/pull/1401

Merge request reports

Loading