April 9, 2026
10:51 a.m.
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? -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10550#note_135705