On Thu Apr 9 11:12:16 2026 +0000, Matteo Bruni wrote:
I see that I probably "broke" the MappingNotify events by enabling the Xkb ones: https://www.x.org/releases/X11R7.6/doc/libX11/specs/XKB/xkblib.html#effects_... Since I wasn't getting any MappingNotify event I rebuilt that instrumentation around the Xkb events. I'll get rid of that and see how well it works with just MappingNotify. It looks like I don't get any MappingNotify events already with upstream Wine. That's on both pure X11 and Xwayland. Thinking back to it, it was probably the other way around: I saw no MappingNotify event, interpreted that Xkblib doc excerpt as "if you explicitly use Xkb you don't get MappingNotify events" and proceeded to enable and handle the Xkb events instead.
I'm not sure what broke this and how far back it goes. For what it's worth, Xkb events seem to work pretty okay in the setups I checked and we could always add more failsafes if necessary (e.g. in your draft MR you update the current Xkb group from `KeyEvent`, https://gitlab.winehq.org/wine/wine/-/merge_requests/2122/diffs?commit_id=8c...) -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10550#note_135644