diff --git a/src/modules/sway/bar.cpp b/src/modules/sway/bar.cpp index 76afd9f547..cc6613265c 100644 --- a/src/modules/sway/bar.cpp +++ b/src/modules/sway/bar.cpp @@ -86,7 +86,9 @@ void BarIpcClient::onConfigUpdate(const swaybar_config& config) { void BarIpcClient::onVisibilityUpdate(bool visible_by_modifier) { spdlog::trace("visiblity update: {}", visible_by_modifier); - // TODO: pass visibility to bars + for (auto& bar : client_.bars) { + bar->setVisible(visible_by_modifier); + } } } // namespace waybar::modules::sway