protocols: add xdg_toplevel_tag_v1 support
Adds a new windowrule to target windows by xdgTag, xdgtag:
This commit is contained in:
parent
55e953b383
commit
a4f7d7c594
11 changed files with 140 additions and 11 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue