Merge pull request #4372 from rellimn/fix-menu-hover

Fix module and tray item staying in hover state after opening menu
This commit is contained in:
Alexis Rouillard
2025-10-01 14:25:23 +02:00
committed by GitHub
2 changed files with 7 additions and 0 deletions

View File

@ -450,6 +450,9 @@ void Item::makeMenu() {
gtk_menu->attach_to_widget(event_box);
}
}
// Manually reset prelight to make sure the tray item doesn't stay in a hover state even though
// the menu is focused
event_box.unset_state_flags(Gtk::StateFlags::STATE_FLAG_PRELIGHT);
}
bool Item::handleClick(GdkEventButton* const& ev) {