diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-10-04 10:14:32 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-04 10:14:32 -0400 |
commit | edadbc7c7f88670afdbabd05a6027c438415c3db (patch) | |
tree | 6ffebb7341cbd8201f3ae6144414f106e52d08e6 /xwayland | |
parent | 836242b0c4b6028c6d04209f575d894fbfe85b08 (diff) | |
parent | dd4bdf1f56ab8b94da834cf8d3100e9baae9a2ea (diff) |
Merge pull request #202 from 4e554c4c/unsetenv
Unset $DISPLAY until XWayland is ready
Diffstat (limited to 'xwayland')
-rw-r--r-- | xwayland/xwayland.c | 4 |
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; |