commit | cf40a138206cf8cabef14d54641d566f11239188 | [log] [tgz] |
---|---|---|
author | Jason Ekstrand <jason@jlekstrand.net> | Wed Apr 02 19:53:56 2014 -0500 |
committer | Kristian Høgsberg <krh@bitplanet.net> | Wed Apr 02 21:27:06 2014 -0700 |
tree | d14e4d01a48ee37ca9ee7be8f34f6ee15d29a16c | |
parent | e4ca8b0bdd1ec41d26ffdb7ac336c3c0ce27170a [diff] [blame] |
Automatically select the wayland backend if WAYLAND_SOCKET is set Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
diff --git a/src/compositor.c b/src/compositor.c index 6b90bd8..362e959 100644 --- a/src/compositor.c +++ b/src/compositor.c
@@ -4168,7 +4168,7 @@ 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");