XIM input sometimes jumbled
Which distribution and version?: Fedora Linux
Which desktop environment and version?: GNOME
Which session type?: Wayland and Xorg
IBus version?: 1.5.29-rc1 and earlier
Issue description: Direct input to an X app can get scrambled (misordered) sometimes.
Prepare environment:
eg in Fedora 39 Gnome with XMODIFIERS=@im=ibus
:
$ sudo dnf install evemu xterm
$ xterm &
$ wget https://gitlab.gnome.org/GNOME/gnome-shell/uploads/638f63efdb622745be311187c435234a/log.txt
$ sudo evemu-play log.txt
Steps to reproduce:
- press Enter after
Hit enter to start replaying
- immediately press Alt-Tab to switch the focus to the X app (xterm)
- watch the input
- when it stops Alt-Tab back to the terminal and repeat from step 2
Eventually the input appearing in input the X app becomes misordered/jumbled/scrambled:
mreoac-@talklanet#1alknaelt#1anll#a1ketalklanet#1akalln#et1alklaten1#@tea-rmocakll1tna#e
versus expected input:
@team-rocalklanet#1alklanet#1alklaneT#1
...