mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-26 06:35:58 +01:00
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.
This commit is contained in:
parent
8ad2cc39eb
commit
87836dcb55
1 changed files with 1 additions and 2 deletions
|
@ -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…
Reference in a new issue