diff --git a/sway/server.c b/sway/server.c index 0fcd58003..b24cc1dc4 100644 --- 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);