a0206dcc3f
It waits for the overview to close because otherwise the screenshot UI would capture the overview. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2106>