@@ -, +, @@ --- x11-wm/plasma5-kwin/Makefile | 1 + .../patch-src_xwl_lib_xwaylandsocket.cpp | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 x11-wm/plasma5-kwin/files/patch-src_xwl_lib_xwaylandsocket.cpp --- b/x11-wm/plasma5-kwin/Makefile +++ b/x11-wm/plasma5-kwin/Makefile @@ -1,5 +1,6 @@ PORTNAME= kwin DISTVERSION= ${KDE_PLASMA_VERSION} +PORTREVISION= 1 CATEGORIES= x11-wm kde kde-plasma MAINTAINER= kde@FreeBSD.org --- /dev/null +++ b/x11-wm/plasma5-kwin/files/patch-src_xwl_lib_xwaylandsocket.cpp @@ -0,0 +1,19 @@ +$ kwin_wayland --xwayland +[...] +kwin_xwl: Failed to find free X11 connection socket +Failed to establish X11 socket + +--- src/xwl/lib/xwaylandsocket.cpp.orig 2021-10-26 12:27:37 UTC ++++ src/xwl/lib/xwaylandsocket.cpp +@@ -183,7 +183,11 @@ XwaylandSocket::XwaylandSocket(OperationMode mode) + continue; + } + ++#if defined(Q_OS_LINUX) + const int abstractFileDescriptor = listen_helper(socketFilePath, UnixSocketAddress::Type::Abstract, mode); ++#else ++ const int abstractFileDescriptor = listen_helper(socketFilePath + "_", UnixSocketAddress::Type::Unix, mode); ++#endif + if (abstractFileDescriptor == -1) { + QFile::remove(lockFilePath); + QFile::remove(socketFilePath);