mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-13 14:42:29 +02:00
fix 'visible' class for special workspaces
This commit is contained in:
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user