Hi,
I'm having this bug too due to the use of ibus, and have been very
annoyed by it for a long time.
From a quick look at the patch, it seems not trivially backportable as
the commit fixing it in mutter is after they have introduced
clutter_keymap_get_modifier_state(), trixie has separate
clutter_keymap_get_caps_lock_state() and
clutter_keymap_get_num_lock_state() functions.
Using clutter_keymap_get_modifier_state() in turn seems to require a
dependency on libxkbcommon which probably is considered too intrusive
for a stable update.
So, best changes would be if upstream backports it to a 48.x point
release of mutter.
Regards,
Daniel