Add hide-active

This commit is contained in:
gred
2025-06-07 12:11:22 +03:00
parent 0332d2ebf8
commit e3e8077342
3 changed files with 12 additions and 0 deletions
+9
View File
@@ -173,6 +173,15 @@ std::string &Workspace::selectIcon(std::map<std::string, std::string> &icons_map
}
void Workspace::update(const std::string &format, const std::string &icon) {
// clang-format off
if (this->m_workspaceManager.hideActive() && \
this->isActive() && \
!this->isPersistent() && \
!this->isSpecial()) {
// clang-format on
m_button.hide();
return;
}
// clang-format off
if (this->m_workspaceManager.activeOnly() && \
!this->isActive() && \