wayland: Keep the client's Modifiers up to date
The keyboard is forwarded to the focused client , which is no problem. Modifiers can cooperate with the mouse to complete some operations. For example, ctrl+middle mouse button can zoom
weston has done it: https://gitlab.freedesktop.org/wayland/weston/-/blob/main/libweston/input.c#L1472