On Thu Apr 9 14:55:23 2026 +0000, Matteo Bruni wrote:
No idea why I'm not getting any MappingNotify event at all... I tried on Gnome X11 and Wayland, KDE X11, nothing. Some of that is in VMs but I don't see how that would make a difference. This is all with my own self-built Wine, usually with the new wow64 mode, but nothing particularly notable otherwise. I'm usually testing with my own small Windows test application, but same when using e.g. builtin notepad. Also tried to switch with the hotkeys vs with the mouse on the toolbar, no difference. I'm attaching one of my logs, where I toggle the keyboard layout twice. This is with today's Wine, unchanged except I added a trace to `X11DRV_ProcessEvents()` for good measure... [log-notepad.txt.xz](/uploads/caff61076a7795736269345824dd0f7c/log-notepad.txt.xz) How many layouts have you configured? What does `setxkbmap -print` says before/after you switch?
Fwiw you can also check with `xev -event keyboard`, it should print the MappingNotify events whenever the Xkb descriptor changes, which happens for instance on GNOME, after you have pressed a key, iff you have more than 4 layouts configured, and when you switch from layout 0 to layout >= 4 for instance. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10550#note_135702