Clicks in unfocused entries open OSK immediately
In gtk4 on Wayland when clicking an unfocused entry/textview this now results in the OSK being shown immediately. This seems like an unintentional change in behavior introduced in !5269 (merged). Prior to that the OSK was only shown when clicking on a focused entry/textview, i.e. on the second click in a widget. The previous behavior is also how gtk3 works.
One possible solution would be to store whether the widget was focused early in the pressed
handler prior to grabbing focus and then checking for that in the released
handler.
Or if the new behavior was intentional, maybe gtk3 should be adjusted.