sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit eb4fa183088d0361e2492780e303e2965c5ecae1
parent dfccd2a4c483a6ff03350cd4ac5e3fada1f40f2e
Author: Simon Ser <contact@emersion.fr>
Date:   Thu,  2 Jul 2020 13:50:24 +0200

Unset DISPLAY when wlr_xwayland fails

Avoids having applications connect to a leftover DISPLAY when Xwayland
fails to initialize.

Diffstat:
Msway/server.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/sway/server.c b/sway/server.c @@ -202,6 +202,7 @@ bool server_start(struct sway_server *server) { config->xwayland == XWAYLAND_MODE_LAZY); if (!server->xwayland.wlr_xwayland) { sway_log(SWAY_ERROR, "Failed to start Xwayland"); + unsetenv("DISPLAY"); } else { wl_signal_add(&server->xwayland.wlr_xwayland->events.new_surface, &server->xwayland_surface);