mirror of
https://github.com/hyprwm/Hyprland
synced 2025-01-25 14:29:49 +01:00
xwayland: don't create an abstract unix domain socket on linux (#8874)
This commit is contained in:
parent
8d4c18d723
commit
2b01a5bcf6
1 changed files with 0 additions and 7 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue