From 87836dcb55e15cd1f19f5549d4fcd666135dba15 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 16 Sep 2020 12:54:40 +0200 Subject: [PATCH] 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. --- backend/backend.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/backend.c b/backend/backend.c index c71b072f..aa0d9668 100644 --- a/backend/backend.c +++ b/backend/backend.c @@ -254,8 +254,7 @@ struct wlr_backend *wlr_backend_autocreate(struct wl_display *display, return backend; } - if (getenv("WAYLAND_DISPLAY") || getenv("_WAYLAND_DISPLAY") || - getenv("WAYLAND_SOCKET")) { + if (getenv("WAYLAND_DISPLAY") || getenv("WAYLAND_SOCKET")) { struct wlr_backend *wl_backend = attempt_wl_backend(display, create_renderer_func); if (!wl_backend) {