summaryrefslogtreecommitdiff
path: root/src/xwayland/Server.cpp
diff options
context:
space:
mode:
authorClayton <42688647+netadr@users.noreply.github.com>2024-12-28 09:07:42 -0500
committerGitHub <noreply@github.com>2024-12-28 14:07:42 +0000
commit2b01a5bcf62956a5d641a3367edcd35e103edfcd (patch)
tree89df61c3454959b399230170212c4df6d7f3369e /src/xwayland/Server.cpp
parent8d4c18d723d18f5bf5190b62b562301860df74f7 (diff)
xwayland: don't create an abstract unix domain socket on linux (#8874)
Diffstat (limited to 'src/xwayland/Server.cpp')
-rw-r--r--src/xwayland/Server.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/xwayland/Server.cpp b/src/xwayland/Server.cpp
index b1f02cd3..c67d5830 100644
--- a/src/xwayland/Server.cpp
+++ b/src/xwayland/Server.cpp
@@ -148,15 +148,8 @@ static bool openSockets(std::array<int, 2>& sockets, int display) {
sockaddr_un addr = {.sun_family = AF_UNIX};
std::string path;
-#ifdef __linux__
- // cursed...
- addr.sun_path[0] = 0;
- path = getSocketPath(display, true);
- strncpy(addr.sun_path + 1, path.c_str(), path.length() + 1);
-#else
path = getSocketPath(display, false);
strncpy(addr.sun_path, path.c_str(), path.length() + 1);
-#endif
sockets[0] = createSocket(&addr, path.length());
if (sockets[0] < 0)