mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-16 12:33:48 -07:00
protocols: add xdg_toplevel_tag_v1 support
Adds a new windowrule to target windows by xdgTag, xdgtag:
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user