
When modal dialogs are attached, and we set the parent/transient-for after setting the modal type, the attachedness isn't updated. This is (apparently) not the case for X11 windows, as they go through a unmanage/manage dance avoiding the issue. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2810>