diff options
author | emersion <contact@emersion.fr> | 2019-03-04 20:51:48 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2019-03-04 21:16:00 +0100 |
commit | a6711740bcd311e1ee551c83a5dfc46d9344d17e (patch) | |
tree | da5a5f7f0887535715fb292c4de4a83634cbb2e5 | |
parent | meson: update scdoc requirement to >= 1.9.2 (diff) | |
download | sway-a6711740bcd311e1ee551c83a5dfc46d9344d17e.tar.gz sway-a6711740bcd311e1ee551c83a5dfc46d9344d17e.tar.zst sway-a6711740bcd311e1ee551c83a5dfc46d9344d17e.zip |
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 0fcd5800..b24cc1dc 100644 --- a/sway/server.c +++ b/sway/server.c | |||
@@ -184,6 +184,8 @@ bool server_start(struct sway_server *server) { | |||
184 | &server->xwayland_ready); | 184 | &server->xwayland_ready); |
185 | server->xwayland_ready.notify = handle_xwayland_ready; | 185 | server->xwayland_ready.notify = handle_xwayland_ready; |
186 | 186 | ||
187 | setenv("DISPLAY", server->xwayland.wlr_xwayland->display_name, true); | ||
188 | |||
187 | server->xwayland.xcursor_manager = | 189 | server->xwayland.xcursor_manager = |
188 | wlr_xcursor_manager_create(cursor_theme, cursor_size); | 190 | wlr_xcursor_manager_create(cursor_theme, cursor_size); |
189 | wlr_xcursor_manager_load(server->xwayland.xcursor_manager, 1); | 191 | wlr_xcursor_manager_load(server->xwayland.xcursor_manager, 1); |