Backport input method related fix
See https://gitlab.gnome.org/World/Phosh/phoc/-/merge_requests/592
It's three patches as there was some cleanup upfront
See https://gitlab.gnome.org/World/Phosh/phoc/-/merge_requests/592
It's three patches as there was some cleanup upfront