fix(sway/workspaces): Visible class doesn't work on visible and empty workspaces

This commit is contained in:
Mauro Guida 2024-03-23 13:02:39 +01:00
parent cc084f5f86
commit 7cd2a6c003
1 changed files with 1 additions and 1 deletions

View File

@ -304,7 +304,7 @@ auto Workspaces::update() -> void {
} else {
button.get_style_context()->remove_class("focused");
}
if (hasFlag((*it), "visible")) {
if (hasFlag((*it), "visible") || ((*it)["output"].isString() && (*it)["nodes"].size() == 0)) {
button.get_style_context()->add_class("visible");
} else {
button.get_style_context()->remove_class("visible");