| Summary: | X11: keypress events are delivered twice with certain IMEs | ||
|---|---|---|---|
| Product: | SDL | Reporter: | felix <felix.von.s> |
| Component: | events | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | 2.0.5 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
I think this was fixed in changeset 10570. Can you verify it's fixed by the latest SDL snapshot? http://www.libsdl.org/tmp/SDL-2.0.zip Thanks! Yes, it seems that does it. Thank you. Great, thanks! |
Whenever I launch an SDL2 program, every keyboard event is delivered to it twice. It turns out the culprit is a workaround for IMEs in the X11 video driver. I use UIM; when it sits there idle ('direct' input method), every KeyPress/KeyRelease X11 event is delivered twice: the first time is supposed to be discarded after processing by XFilterEvent and the other is not. SDL, however, specifically delivers events that XFilterEvent indicates should be ignored. I can work around this problem by emptying the XMODIFIERS variable in the environment of SDL2 apps, disabling the IME.