Skip to content

Commit 8a15cba

Browse files
committed
Fixes: Add stretching of modules and modules-center toggling
Thanks to tmccombs this commit fixes some inconsitencies in #3730. These inconsitencies were: - Fixed the oversight of missing the implementation of expand_center for center_ and right_ - Removes a last minut printf debugging statment I missed.
1 parent 8490a1d commit 8a15cba

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/bar.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,6 @@ auto waybar::Bar::setupWidgets() -> void {
545545
if (config["fixed-center"].isBool() ? config["fixed-center"].asBool() : true) {
546546
box_.set_center_widget(center_);
547547
} else {
548-
spdlog::error("No fixed center_");
549548
box_.pack_start(center_, true, expand_center);
550549
}
551550
}
@@ -569,13 +568,13 @@ auto waybar::Bar::setupWidgets() -> void {
569568

570569
if (!no_center) {
571570
for (auto const& module : modules_center_) {
572-
center_.pack_start(*module, false, false);
571+
center_.pack_start(*module, module->expandEnabled(), module->expandEnabled());
573572
}
574573
}
575574

576575
std::reverse(modules_right_.begin(), modules_right_.end());
577576
for (auto const& module : modules_right_) {
578-
right_.pack_end(*module, false, false);
577+
right_.pack_end(*module, module->expandEnabled(), module->expandEnabled());
579578
}
580579
}
581580

0 commit comments

Comments
 (0)