add 'visible' css class to special workspaces

pull/2894/head
Jannik 2024-02-07 21:10:17 +01:00
parent c30541b954
commit 61be2267ab
No known key found for this signature in database
1 changed files with 6 additions and 0 deletions

View File

@ -184,6 +184,12 @@ void Workspaces::doUpdate() {
if (ws.isObject() && (ws["name"].isString())) {
visibleWorkspaces.push_back(ws["name"].asString());
}
auto sws = monitor["specialWorkspace"];
auto name = sws["name"].asString();
if (sws.isObject() && (sws["name"].isString()) && !name.empty()) {
visibleWorkspaces.push_back(name == "special" ? "special"
: name.substr(8, name.length() - 8));
}
}
for (auto &workspace : m_workspaces) {