Skip to content

Commit

Permalink
backend: remove check for _WAYLAND_DISPLAY
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
emersion authored and ddevault committed Sep 16, 2020
1 parent 8ad2cc3 commit 87836dc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/backend.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 87836dc

Please sign in to comment.