Signed-off-by: Jason Ekstrand <[email protected]>
---
 src/compositor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/compositor.c b/src/compositor.c
index 919f4c7..437c37d 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -4086,7 +4086,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");
-- 
1.8.5.3

_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to