xwayland: use proper path for the XWayland sockets (#7852)

fixes #7849
This commit is contained in:
Arisa Snowbell 2024-09-19 12:08:02 +02:00 committed by GitHub
parent e6cf643f5a
commit 1bc05b1f9f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -132,9 +132,9 @@ static bool ensureSocketDirExists() {
static std::string getSocketPath(int display, bool isLinux) {
if (isLinux)
return std::format("/tmp/.X11-unix{}", display);
return std::format("/tmp/.X11-unix/X{}", display);
return std::format("/tmp/.X11-unix{}_", display);
return std::format("/tmp/.X11-unix/X{}_", display);
}
static bool openSockets(std::array<int, 2>& sockets, int display) {