commit a6711740bcd311e1ee551c83a5dfc46d9344d17e
parent 3f184cf188234083498e0b03435853bbadd01a99
Author: emersion <contact@emersion.fr>
Date: Mon, 4 Mar 2019 20:51:48 +0100
Set DISPLAY after initializing Xwayland
This is necessary after https://github.com/swaywm/wlroots/pull/1596
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/sway/server.c b/sway/server.c
@@ -184,6 +184,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);