Broken out from bug 7985. Looks like there's an issue on GNOME Wayland: 1. Connect to a session 2. Switch to a different window locally 3. Switch lock state (e.g. enable caps lock) 4. Switch focus back to the client 5. Lock state is not synced (I see fake key events with xev). 6. Switch to a different window locally 7. Switch focus back to client 8. Lock state is now synced You have to switch focus twice before lock states get synced. This should happen immediately. I could not see this issue on GNOME X11, KDE, MATE, or on Windows/Mac.
I've reported this to RedHat: https://bugzilla.redhat.com/show_bug.cgi?id=2347305
Created attachment 1264 [details] Minimal example to trigger issue I managed to get a minimal working example using only X11, and RedHat referred me to mutter instead: https://gitlab.gnome.org/GNOME/mutter/-/issues/3929