GTK text entries do not summon GNOME Screen Keyboard when focused
Steps to reproduce
- Start GNOME under Wayland
- Enable GNOME's Screen Keyboard under the accessibility settings
- Start some GTK application that contains a text entry
- Focusing the text entry, either by clicking it, TAB:ing to it, let the application itself do it some how, or whatever
Current behavior
The Screen Keyboard is not shown despite the text entry being focused (cursor is visible). Focusing the text entry again (e.g. by clicking it) is required for the Screen Keyboard to appear. This is pretty easy to notice when using GNOME Text Editor or GNOME Terminal, for instance.
Worse, some text entries seem to not summon the Screen Keyboard no matter what you do. So far the only instances I've found seem pretty related, namely the search fields in popovers in GNOME Settings (click the magnifying glass in the header bar) and GNOME Text Editor (click "Open" in the header bar).
Expected outcome
The Screen Keyboard should be shown whenever a text entry is focused without any extra clicks/actions needed. This is how it works under Xorg so there seems to be issues in GTK's Wayland-specific code.
Version information
I've tried this both in:
- Debian Sid with GNOME 42.4 and GTK 4.7.2
- Fedora Workstation 36 with GNOME 42.0 and GTK 4.6.2
Additional information
!4397 (merged) seems related but obviously did not fix the issue.