diff options
author | Simon Ser <contact@emersion.fr> | 2020-09-16 12:54:40 +0200 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-09-16 15:53:14 -0400 |
commit | 87836dcb55e15cd1f19f5549d4fcd666135dba15 (patch) | |
tree | 6d4bb94e24a6ebc252409394b5bc89e940e4f046 | |
parent | 8ad2cc39eb420c22dde7e49c01bde916b7bc58cc (diff) |
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.
-rw-r--r-- | backend/backend.c | 3 |
1 files changed, 1 insertions, 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) { |