Skip to content

Commit

Permalink
feat: add atoms for xwayland
Browse files Browse the repository at this point in the history
  • Loading branch information
Groveer committed Dec 16, 2024
1 parent 4940374 commit 775fd7d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/shellhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 775fd7d

Please sign in to comment.