aboutsummaryrefslogtreecommitdiff
path: root/xwayland
diff options
context:
space:
mode:
authorCalvin Lee <cyrus296@gmail.com>2017-10-03 22:42:10 -0600
committerCalvin Lee <cyrus296@gmail.com>2017-10-03 22:42:10 -0600
commitdd4bdf1f56ab8b94da834cf8d3100e9baae9a2ea (patch)
tree6ffebb7341cbd8201f3ae6144414f106e52d08e6 /xwayland
parent836242b0c4b6028c6d04209f575d894fbfe85b08 (diff)
Unset $DISPLAY until XWayland is ready
Diffstat (limited to 'xwayland')
-rw-r--r--xwayland/xwayland.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xwayland/xwayland.c b/xwayland/xwayland.c
index d3bb41a0..2bec1b63 100644
--- a/xwayland/xwayland.c
+++ b/xwayland/xwayland.c
@@ -215,6 +215,10 @@ static bool wlr_xwayland_init(struct wlr_xwayland *wlr_xwayland,
wlr_xwayland_finish(wlr_xwayland);
return false;
}
+
+ // unset $DISPLAY while XWayland starts
+ unsetenv("DISPLAY");
+
wlr_xwayland->wl_fd[0] = -1; /* not ours anymore */
wlr_xwayland->destroy_listener.notify = xwayland_destroy_event;