Replace gtk_text_input with text_input_unstable_v3 support
This is a continuation of !112 (closed), since GTK-3 moved on.
The protocol is being implemented in wlroots, with a WIP branch available at https://source.puri.sm/Librem5/wlroots/commits/text_input_rebase .
The protocol in use was posted as patch v7 of text-input-unstable on wayland-devel.
- Check out GTK
- Check out the WIP wlroots branch
- Build GTK immodule:
./configure --enable-wayland-backend --enable-debug=yes --prefix=`pwd`/../gtk-install make make install
- Build wlroots:
meson . ../wlroots-build -Denable_xwayland=false
- Try it out with GTK3:
WAYLAND_DEBUG=1 GDK_BACKEND=wayland GTK_IM_MODULE=wayland GTK_IM_MODULE_FILE=./gtk-install/lib/gtk-3.0/3.0.0/immodules.cache yad --entry
The input-method application should display data coming from yad, while yad should display a couple of testing patterns.