Merge pull request #3332 from zspher/patch-wlr-taskbar

This commit is contained in:
Alexis Rouillard
2024-06-05 22:07:55 +02:00
committed by GitHub

View File

@ -894,7 +894,7 @@ void Taskbar::move_button(Gtk::Button &bt, int pos) { box_.reorder_child(bt, pos
void Taskbar::remove_button(Gtk::Button &bt) { void Taskbar::remove_button(Gtk::Button &bt) {
box_.remove(bt); box_.remove(bt);
if (tasks_.empty()) { if (box_.get_children().empty()) {
box_.get_style_context()->add_class("empty"); box_.get_style_context()->add_class("empty");
} }
} }