summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/wayland-client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wayland-client.c b/src/wayland-client.c
index 939c17d..22244f8 100644
--- a/src/wayland-client.c
+++ b/src/wayland-client.c
@@ -352,6 +352,7 @@ wl_display_connect(const char *name)
flags = fcntl(display->fd, F_GETFD);
if (flags != -1)
fcntl(display->fd, F_SETFD, flags | FD_CLOEXEC);
+ unsetenv("WAYLAND_SOCKET");
} else if (connect_to_socket(display, name) < 0) {
free(display);
return NULL;