mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-13 14:42:29 +02:00
fix(sway/workspaces): Visible class doesn't work on visible and empty workspaces
This commit is contained in:
@ -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");
|
||||||
|
Reference in New Issue
Block a user