add 'visible' css class to special workspaces
parent
c30541b954
commit
61be2267ab
|
@ -184,6 +184,12 @@ void Workspaces::doUpdate() {
|
||||||
if (ws.isObject() && (ws["name"].isString())) {
|
if (ws.isObject() && (ws["name"].isString())) {
|
||||||
visibleWorkspaces.push_back(ws["name"].asString());
|
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) {
|
for (auto &workspace : m_workspaces) {
|
||||||
|
|
Loading…
Reference in New Issue