fix: add hover handler to every element in the group drawer

This commit is contained in:
Brenno Lemos 2023-10-14 22:13:01 -03:00
parent 8f32d102ae
commit 05b97e9ec2
1 changed files with 3 additions and 4 deletions

View File

@ -110,10 +110,9 @@ void Group::addWidget(Gtk::Widget& widget) {
getBox().pack_start(widget, false, false);
if (is_drawer) {
if (is_first_widget) {
// Necessary because of GTK's hitbox detection
addHoverHandlerTo(widget);
} else {
if (!is_first_widget) {
widget.get_style_context()->add_class(add_class_to_drawer_children);
}
}