On Thu Apr 9 15:51:07 2026 +0000, Rémi Bernon wrote:
This brings up the "not noticing the layout switch until the next keypress" problem though. I don't know how important it is but it might be a point in favor of listening to Xkb events when available. This seems to be a GNOME specific problem, possibly their bug, and maybe we don't have to worry about it for now. Also, I'm not sure that using Xkb events would make any difference, have you checked that it does? In fact, switching to "ru" gives me this keymap: `pc+us+ru:2+inet(evdev)`. From there switching to "it" causes another MappingNotify (or 4 actually, for some reason), reinstalling the previous keymap, while a switch to "us" would cause no MappingNotify event.
For reference, on Gnome X11 with the same layouts configured I get this keymap: `pc+us+it:2+ru:3+us:4+inet(evdev)+level3(rwin_switch)`. And indeed, switching among the "us", "it", "ru" layouts doesn't require an Xkb keymap update or generate a MappingNotify event, while flipping to a different layout will do so. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10550#note_135707