From 3df6384c3a6f3f56a16873b63fdbc731f2ccfadb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Tue, 31 Jul 2012 14:54:48 -0400 Subject: [PATCH] compositor: Set WAYLAND_DISPLAY if we're given a --socket argument This lets us run multiple compositors (nested or on different VTs). https://bugs.freedesktop.org/show_bug.cgi?id=46629 --- src/compositor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/compositor.c b/src/compositor.c index bd2a0d2c..97efcaf9 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -3536,6 +3536,8 @@ int main(int argc, char *argv[]) config_file = config_file_path("weston.ini"); parse_config_file(config_file, cs, ARRAY_LENGTH(cs), shell); + if (socket_name) + setenv("WAYLAND_DISPLAY", socket_name, 1); backend_init = load_module(backend, "backend_init", &backend_module); if (!backend_init)