Skip to content

X11: KeyboardInput events with ElementState::Released are leaked during IME composition with Fcitx5 #4525

@umajho

Description

@umajho

Description

Although KeyboardInput events with ElementState::Pressed are not emitted, the ElementState:: Released counterparts are emitted.

Image

I have only tested on Fcitx5. I don't know whether other IMFs (e.g. IBus) under X11 also have this problem.

The ideal behavior should look like the Wayland + IBus one demonstrated in #4508.

Reproduction

https://gist.github.com/umajho/5f42a9cfe49ecfe61d4a9753796d00f2

OS and window mananger

Debian 13
Cinnamon 6.4.10
Fcitx5 5.1.2

Winit version

0.30.13

Metadata

Metadata

Assignees

No one assigned

    Labels

    B - bugDang, that shouldn't have happenedDS - x11Affects the X11 backend, or generally free Unix platforms

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions