You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reported in version: 2.0.3 Reported for operating system, platform: Linux, x86_64
Comments on the original bug report:
On 2014-05-08 23:06:52 +0000, wrote:
Created attachment 1642
repro for XFilterEvent bug
In a clean install of Ubuntu 14.04, ibus is enabled by default. (in the environment, XMODIFIERS=@im=ibus). This means that in some cases, XFilterEvent will return TRUE for a keydown event. And then the same keydown event is redelivered immediately, but XFilterEvent returns FALSE.
There is code in X11_DispatchEvent() which calls SDL_SendKeyboardKey even though XFilterEvent returned true. This causes a duplicate SDL keydown event.
See the attached code for a repro case on Ubuntu 14.04 with Unity.
I don't know the rationale behind why SDL would deliver keydowns for these filtered keys. Here is a patch which just ignores the filtered events, but it is possible something cleverer needs to be done.
On 2015-02-09 15:28:34 +0000, Daniel Gibson wrote:
I don't know much about ibus, but maybe it should only be used for textinput events and not for key presses?
Does that make sense, and if it does, is it technically possible?
On 2015-09-28 22:58:34 +0000, Alex Baines wrote:
This is only an issue because you are calling XSetLocaleModifiers. SDL doesn't call it internally afaict so $XMODIFIERS is never read, and XIM won't connect to ibus-daemon even if it was started with --xim.
If you have to call XSetLocaleModifiers for some reason, you can work around this issue by checking if XMODIFIERS contains "@im=ibus" and calling XSetLocaleModifiers("@im=none"). e.g:
This bug report was migrated from our old Bugzilla tracker.
These attachments are available in the static archive:
Reported in version: 2.0.3
Reported for operating system, platform: Linux, x86_64
Comments on the original bug report:
On 2014-05-08 23:06:52 +0000, wrote:
On 2015-02-09 01:39:19 +0000, Daniel Gibson wrote:
On 2015-02-09 15:28:34 +0000, Daniel Gibson wrote:
On 2015-09-28 22:58:34 +0000, Alex Baines wrote:
On 2016-10-01 21:11:16 +0000, Sam Lantinga wrote:
The text was updated successfully, but these errors were encountered: