protocols: add xdg_toplevel_tag_v1 support

Adds a new windowrule to target windows by xdgTag, xdgtag:
This commit is contained in:
Vaxry
2025-04-21 22:22:06 +01:00
parent 55e953b383
commit a4f7d7c594
11 changed files with 140 additions and 11 deletions

View File

@@ -1808,3 +1808,17 @@ void CWindow::deactivateGroupMembers() {
bool CWindow::isNotResponding() {
return g_pANRManager->isNotResponding(m_pSelf.lock());
}
std::optional<std::string> CWindow::xdgTag() {
if (!m_pXDGSurface || !m_pXDGSurface->toplevel)
return std::nullopt;
return m_pXDGSurface->toplevel->m_toplevelTag;
}
std::optional<std::string> CWindow::xdgDescription() {
if (!m_pXDGSurface || !m_pXDGSurface->toplevel)
return std::nullopt;
return m_pXDGSurface->toplevel->m_toplevelDescription;
}