fix 'visible' class for special workspaces

pull/2894/head
Jannik 2024-02-10 17:26:44 +01:00
parent 240b49f9d2
commit a2925fa5da
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ void Workspaces::doUpdate() {
auto sws = monitor["specialWorkspace"]; auto sws = monitor["specialWorkspace"];
auto name = sws["name"].asString(); auto name = sws["name"].asString();
if (sws.isObject() && (sws["name"].isString()) && !name.empty()) { if (sws.isObject() && (sws["name"].isString()) && !name.empty()) {
visibleWorkspaces.push_back(name.starts_with("special:") ? name : name.substr(8)); visibleWorkspaces.push_back(!name.starts_with("special:") ? name : name.substr(8));
} }
} }