Allows for more complex connection management. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2810>