Upstream says https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3475/diffs fixes it, but it is a big change and needs to be backport to GNOME 45.