Allow selecting wayland direct connector by name
Splits the connector selection code into a separate function that
accepts a connector name to match against.
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2283>
authored by