pub(crate) fn resolve_backend() -> Result<Box<dyn CuBackend>, String>Expand description
Pick the backend for one request: the registered Wayland compositor when present,
otherwise a fresh private connection to DISPLAY. The X11 connection is per-request so a
restarted X server never leaves the CU thread holding a dead connection.