Skip to content

Commit

Permalink
Use wlr_xwayland_display_name
Browse files Browse the repository at this point in the history
Update for [1].

[1]: swaywm/wlroots#2175
  • Loading branch information
emersion committed May 8, 2020
1 parent 9cda5a5 commit 838db58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sway/server.c
Expand Up @@ -203,7 +203,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);
setenv("DISPLAY",
wlr_xwayland_display_name(server->xwayland.wlr_xwayland), true);

/* xcursor configured by the default seat */
}
Expand Down

0 comments on commit 838db58

Please sign in to comment.