SetGroup xkb action not working on Xwayland
For some reason, using a switch option to switch between layouts (while key is down) does not work for xwayland, while the toggle one works just fine.
Configure wm input with grp:caps_toggle and another layout and switching between layouts works. (Toggle here means push+release caps key and you are in layout 2 until push+release again)
Configure wm input with grp:caps_switch and another layout and switching between layouts works for wayland-native applications but not xwayland applications. (Switch here means while caps key is down you are in layout 2)
This can be tested using the utilities in the libxkbcommon repo: interactive-wayland and interactive-x11. The wayland repo will register keysyms from layout 2, while the x11 will not.
Original issue on swaywm github repo: https://github.com/swaywm/sway/issues/4329 Issue has been replicated on sway, weston, and KDE.