
From a test case perspective, it's simple - make the test window have a text entry, and make sure we have a virtual keyboard making GTK3 enable the text entry. This would without a fix trigger https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/6535. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2722>