Merge pull request #3066 from MauroGuida/master

fix(sway/workspaces): Visible class doesn't work on visible and empty workspaces
master
Alexis Rouillard 2024-03-25 19:03:06 +01:00 committed by GitHub
commit b652b4296d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -304,7 +304,7 @@ auto Workspaces::update() -> void {
} else { } else {
button.get_style_context()->remove_class("focused"); 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"); button.get_style_context()->add_class("visible");
} else { } else {
button.get_style_context()->remove_class("visible"); button.get_style_context()->remove_class("visible");