From cf40a138206cf8cabef14d54641d566f11239188 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 2 Apr 2014 19:53:56 -0500 Subject: [PATCH] Automatically select the wayland backend if WAYLAND_SOCKET is set Signed-off-by: Jason Ekstrand --- src/compositor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compositor.c b/src/compositor.c index 6b90bd89..362e959d 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -4168,7 +4168,7 @@ int main(int argc, char *argv[]) NULL); if (!backend) { - if (getenv("WAYLAND_DISPLAY")) + if (getenv("WAYLAND_DISPLAY") || getenv("WAYLAND_SOCKET")) backend = strdup("wayland-backend.so"); else if (getenv("DISPLAY")) backend = strdup("x11-backend.so");