412081a689
Do not rely on global state since there may be more users of it. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3028>