diff options
author | emersion <contact@emersion.fr> | 2019-03-04 20:51:48 +0100 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-03-11 10:56:20 -0400 |
commit | 704450ad176f71f0754e7a5bd20e47594dab905a (patch) | |
tree | 02d5761566ab556fee5637425af143d820629727 | |
parent | 3121352f6f6b73c4ff4ab5e912bf1b31eb7c4090 (diff) |
Set DISPLAY after initializing Xwayland
This is necessary after https://github.com/swaywm/wlroots/pull/1596
-rw-r--r-- | sway/server.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/server.c b/sway/server.c index 712d8022b..cbb5936e5 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); |