From 9601019192a411aca889db48e6dc6c856d1e2a64 Mon Sep 17 00:00:00 2001 From: emersion Date: Sat, 2 Mar 2019 15:14:23 +0100 Subject: xwayland: don't set DISPLAY Let the compositor set it. This allows for multiple Xwayland instances to run at the same time. Fixes https://github.com/swaywm/wlroots/issues/1442 --- rootston/desktop.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rootston/desktop.c') diff --git a/rootston/desktop.c b/rootston/desktop.c index 9a14395d..b0530ea1 100644 --- a/rootston/desktop.c +++ b/rootston/desktop.c @@ -382,6 +382,8 @@ struct roots_desktop *desktop_create(struct roots_server *server, &desktop->xwayland_surface); desktop->xwayland_surface.notify = handle_xwayland_surface; + setenv("DISPLAY", desktop->xwayland->display_name, true); + if (wlr_xcursor_manager_load(desktop->xcursor_manager, 1)) { wlr_log(WLR_ERROR, "Cannot load XWayland XCursor theme"); } -- cgit v1.2.3