I think this MR https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2627 can solve the issue, let's wait for it to be merged.