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 | Make raw keysyms take precedence over translated (diff) | |
download | sway-704450ad176f71f0754e7a5bd20e47594dab905a.tar.gz sway-704450ad176f71f0754e7a5bd20e47594dab905a.tar.zst sway-704450ad176f71f0754e7a5bd20e47594dab905a.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 712d8022..cbb5936e 100644 --- a/sway/server.c +++ b/sway/server.c | |||
@@ -182,6 +182,8 @@ bool server_start(struct sway_server *server) { | |||
182 | &server->xwayland_ready); | 182 | &server->xwayland_ready); |
183 | server->xwayland_ready.notify = handle_xwayland_ready; | 183 | server->xwayland_ready.notify = handle_xwayland_ready; |
184 | 184 | ||
185 | setenv("DISPLAY", server->xwayland.wlr_xwayland->display_name, true); | ||
186 | |||
185 | server->xwayland.xcursor_manager = | 187 | server->xwayland.xcursor_manager = |
186 | wlr_xcursor_manager_create(cursor_theme, cursor_size); | 188 | wlr_xcursor_manager_create(cursor_theme, cursor_size); |
187 | wlr_xcursor_manager_load(server->xwayland.xcursor_manager, 1); | 189 | wlr_xcursor_manager_load(server->xwayland.xcursor_manager, 1); |