Set DISPLAY after initializing Xwayland

This is necessary after https://github.com/swaywm/wlroots/pull/1596
This commit is contained in:
emersion 2019-03-04 20:51:48 +01:00 committed by Drew DeVault
parent 3121352f6f
commit 704450ad17
1 changed files with 2 additions and 0 deletions

View File

@ -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);