Automatically select the wayland backend if WAYLAND_SOCKET is set

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
dev
Jason Ekstrand 11 years ago committed by Kristian Høgsberg
parent e4ca8b0bdd
commit cf40a13820
  1. 2
      src/compositor.c

@ -4168,7 +4168,7 @@ int main(int argc, char *argv[])
NULL); NULL);
if (!backend) { if (!backend) {
if (getenv("WAYLAND_DISPLAY")) if (getenv("WAYLAND_DISPLAY") || getenv("WAYLAND_SOCKET"))
backend = strdup("wayland-backend.so"); backend = strdup("wayland-backend.so");
else if (getenv("DISPLAY")) else if (getenv("DISPLAY"))
backend = strdup("x11-backend.so"); backend = strdup("x11-backend.so");

Loading…
Cancel
Save