On Tue Aug 25 10:46:02 2026 +0000, Rémi Bernon wrote:
Fwiw I'm still not really convinced we need to use the Xkb extension events. We don't NEED the Xkb events but I think they offer some advantages and seem to work fine in my testing.
The main one is if the user switches to a different layout when the window is not in focus, we get an event as soon as we get the focus back, while otherwise I think we need to wait for a key press to notice the change. IIUC this is essentially the same as what's tested in https://gitlab.winehq.org/wine/wine/-/blob/111e5197390aa008789b002222024229f... but for a user-initiated layout change. If you want I can drop these changes though and do it more like winewayland, triggering layout changes on MappingNotify or group changes from the KeyPress state. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/11367#note_149817