mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-13 14:42:29 +02:00
fix: add hover handler to every element in the group drawer
This commit is contained in:
@ -110,10 +110,9 @@ void Group::addWidget(Gtk::Widget& widget) {
|
|||||||
getBox().pack_start(widget, false, false);
|
getBox().pack_start(widget, false, false);
|
||||||
|
|
||||||
if (is_drawer) {
|
if (is_drawer) {
|
||||||
if (is_first_widget) {
|
// Necessary because of GTK's hitbox detection
|
||||||
// Necessary because of GTK's hitbox detection
|
addHoverHandlerTo(widget);
|
||||||
addHoverHandlerTo(widget);
|
if (!is_first_widget) {
|
||||||
} else {
|
|
||||||
widget.get_style_context()->add_class(add_class_to_drawer_children);
|
widget.get_style_context()->add_class(add_class_to_drawer_children);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user