Fix module and tray item staying in hover state after opening menu

Fixes #3980
This commit is contained in:
rellimn
2025-08-12 20:51:35 +02:00
parent 41de8964f1
commit 089b9a20fc
2 changed files with 7 additions and 0 deletions

View File

@ -443,6 +443,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) {