aboutsummaryrefslogtreecommitdiff
path: root/xwayland
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-10-04 10:14:32 -0400
committerGitHub <noreply@github.com>2017-10-04 10:14:32 -0400
commitedadbc7c7f88670afdbabd05a6027c438415c3db (patch)
tree6ffebb7341cbd8201f3ae6144414f106e52d08e6 /xwayland
parent836242b0c4b6028c6d04209f575d894fbfe85b08 (diff)
parentdd4bdf1f56ab8b94da834cf8d3100e9baae9a2ea (diff)
Merge pull request #202 from 4e554c4c/unsetenv
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;