| 521 | } |
| 522 | |
| 523 | void Workspaces::onButtonReady(const Json::Value& node, Gtk::Button& button) { |
| 524 | if (config_["current-only"].asBool()) { |
| 525 | if (is_focused_recursive(node)) { |
| 526 | button.show(); |
| 527 | } else { |
| 528 | button.hide(); |
| 529 | } |
| 530 | } else { |
| 531 | button.show(); |
| 532 | } |
| 533 | } |
| 534 | |
| 535 | } // namespace waybar::modules::sway |
nothing calls this directly
no test coverage detected