backend: remove check for _WAYLAND_DISPLAY

I'm not sure what this was used for, but it's not used by libwayland.
Setting _WAYLAND_DISPLAY would result in the Wayland backend being
picked but would ignore the actual value of the env variable.
master
Simon Ser 4 years ago committed by Drew DeVault
parent 8ad2cc39eb
commit 87836dcb55

@ -254,8 +254,7 @@ struct wlr_backend *wlr_backend_autocreate(struct wl_display *display,
return backend; return backend;
} }
if (getenv("WAYLAND_DISPLAY") || getenv("_WAYLAND_DISPLAY") || if (getenv("WAYLAND_DISPLAY") || getenv("WAYLAND_SOCKET")) {
getenv("WAYLAND_SOCKET")) {
struct wlr_backend *wl_backend = attempt_wl_backend(display, struct wlr_backend *wl_backend = attempt_wl_backend(display,
create_renderer_func); create_renderer_func);
if (!wl_backend) { if (!wl_backend) {

Loading…
Cancel
Save