
Between the GTK4 port and the latest GTK4 version, calling realize() on a newly created window to force its surface to be created stopped working. So instead, wait for the window to get realized regularly to set its parent. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1574>