Automatically select the wayland backend if WAYLAND_SOCKET is set

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
Jason Ekstrand 2014-04-02 19:53:56 -05:00 committed by Kristian Høgsberg
parent e4ca8b0bdd
commit cf40a13820

View File

@ -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");