
This avoids iterating and checking if a service is foreground multiple times. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3291>
This avoids iterating and checking if a service is foreground multiple times. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3291>