Skip to content

Commit

Permalink
feat(swaybar-ipc): handle visibility_by_modifier update
Browse files Browse the repository at this point in the history
  • Loading branch information
alebastr committed Sep 15, 2021
1 parent 4d53677 commit 858c107
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/modules/sway/bar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 858c107

Please sign in to comment.