From 775fd7d08db0ea33a63441e4c535e0268dac9eac Mon Sep 17 00:00:00 2001 From: groveer Date: Mon, 16 Dec 2024 15:46:00 +0800 Subject: [PATCH] feat: add atoms for xwayland depend: https://github.com/vioken/waylib/pull/597 remove: https://github.com/deepin-community/wlroots/pull/17 Log: --- src/core/shellhandler.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/core/shellhandler.cpp b/src/core/shellhandler.cpp index 6f4f76a6..fbc6c5dd 100644 --- a/src/core/shellhandler.cpp +++ b/src/core/shellhandler.cpp @@ -97,6 +97,12 @@ WXWayland *ShellHandler::createXWayland(WServer *server, m_xwaylands.append(xwayland); xwayland->setSeat(seat); connect(xwayland, &WXWayland::surfaceAdded, this, &ShellHandler::onXWaylandSurfaceAdded); + connect(xwayland, &WXWayland::ready, xwayland, [xwayland]{ + auto atomPid = xwayland->atom("_NET_WM_PID"); + xwayland->setAtomSupported(atomPid, true); + auto atomNoTitlebar = xwayland->atom("_DEEPIN_NO_TITLEBAR"); + xwayland->setAtomSupported(atomNoTitlebar, true); + }); return xwayland; }