From 704450ad176f71f0754e7a5bd20e47594dab905a Mon Sep 17 00:00:00 2001 From: emersion Date: Mon, 4 Mar 2019 20:51:48 +0100 Subject: Set DISPLAY after initializing Xwayland This is necessary after https://github.com/swaywm/wlroots/pull/1596 --- sway/server.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sway/server.c b/sway/server.c index 712d8022..cbb5936e 100644 --- a/sway/server.c +++ b/sway/server.c @@ -182,6 +182,8 @@ bool server_start(struct sway_server *server) { &server->xwayland_ready); server->xwayland_ready.notify = handle_xwayland_ready; + setenv("DISPLAY", server->xwayland.wlr_xwayland->display_name, true); + server->xwayland.xcursor_manager = wlr_xcursor_manager_create(cursor_theme, cursor_size); wlr_xcursor_manager_load(server->xwayland.xcursor_manager, 1); -- cgit v1.2.3