feat(Group): add dynamic drawer hiding modules based on module's class.

Add `always-visible-class` to config.
Update the drawer on `hide_group`.
This commit is contained in:
Piotr Piwoński
2025-03-28 20:56:22 +00:00
parent eb2df58f5a
commit 6a7b4af78a
2 changed files with 49 additions and 1 deletions
+2
View File
@@ -26,12 +26,14 @@ class Group : public AModule {
bool is_first_widget = true;
bool is_drawer = false;
bool click_to_reveal = false;
std::string always_visible_class;
std::string add_class_to_drawer_children;
bool handleMouseEnter(GdkEventCrossing *const &ev) override;
bool handleMouseLeave(GdkEventCrossing *const &ev) override;
bool handleToggle(GdkEventButton *const &ev) override;
void show_group();
void hide_group();
void update_always_visible_modules();
};
} // namespace waybar