Merge pull request #3165 from haug1/fix/group-drawer-hover

fix(#3162): hover event did not propagate causing issues
This commit is contained in:
Alexis Rouillard 2024-04-23 16:23:05 +02:00 committed by GitHub
commit 08b0ed1b79
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -90,14 +90,14 @@ bool AModule::handleMouseEnter(GdkEventCrossing* const& e) {
if (auto* module = event_box_.get_child(); module != nullptr) { if (auto* module = event_box_.get_child(); module != nullptr) {
module->set_state_flags(Gtk::StateFlags::STATE_FLAG_PRELIGHT); module->set_state_flags(Gtk::StateFlags::STATE_FLAG_PRELIGHT);
} }
return true; return false;
} }
bool AModule::handleMouseLeave(GdkEventCrossing* const& e) { bool AModule::handleMouseLeave(GdkEventCrossing* const& e) {
if (auto* module = event_box_.get_child(); module != nullptr) { if (auto* module = event_box_.get_child(); module != nullptr) {
module->unset_state_flags(Gtk::StateFlags::STATE_FLAG_PRELIGHT); module->unset_state_flags(Gtk::StateFlags::STATE_FLAG_PRELIGHT);
} }
return true; return false;
} }
bool AModule::handleToggle(GdkEventButton* const& e) { return handleUserEvent(e); } bool AModule::handleToggle(GdkEventButton* const& e) { return handleUserEvent(e); }