Skip to content

Linux/Wayland: on-screen keyboard does not appear on first text field focus #100385

@wmww

Description

@wmww

On Wayland, the first time a text field is focused the on-screen keyboard does not appear. To make it appear, you have to click the text box again. Confusingly, GNOME always requires two clicks to open it's OSK. On GNOME, the first time you have to click a text field 3 times and after that it's just 2.

The cause is that show() in fl_text_input_plugin.cc calls gtk_im_multicontext_set_client_window(). The first time any of the input module functions are called they initialize. However, initializing on Wayland requires multiple a server roundtrips, which the input module doesn't wait for therefor the first enable does not succeed but subsequent ones do.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)a: desktopRunning on desktopa: text inputEntering text in a text field or keyboard related problemsengineflutter/engine related. See also e: labels.platform-linuxBuilding on or for Linux specificallyr: fixedIssue is closed as already fixed in a newer version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions