mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 21:57:55 +00:00
sculpt: don't reset hover on click on '+' menu
When entering/leaving sub menus of Sculpt's '+' menu, some parts of the menu sometimes remain unchanged, in particular the back button. Originally, a click would reset the hovering on clicks in the expectation that any click would eventually result in a completely new situation where the old hovering information does not make sense and would only (potentially) confuse the menu. But this was apparently overzealous. With the patch a once hovered back button stays hovered even when actitivated and the back button of the upper-level menu happens to stay under the current pointer position. Issue #3209
This commit is contained in:
parent
014e800e8a
commit
669aed0ac0
@ -257,7 +257,6 @@ void Popup_dialog::_gen_menu_elements(Xml_generator &xml) const
|
||||
void Popup_dialog::click(Action &action)
|
||||
{
|
||||
Hoverable_item::Id const clicked = _item._hovered;
|
||||
_item._hovered = Hoverable_item::Id();
|
||||
|
||||
_action_item .propose_activation_on_click();
|
||||
_install_item.propose_activation_on_click();
|
||||
|
Loading…
Reference in New Issue
Block a user