mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-01 09:04:02 +00:00
Unhighlight menu items when the mouse leaves them
This commit is contained in:
parent
45b9df78d6
commit
de3d408581
@ -702,6 +702,14 @@ bool MenuItem::onProcessMessage(Message* msg)
|
||||
break;
|
||||
|
||||
case kMouseLeaveMessage:
|
||||
// Unhighlight this item if its submenu isn't opened
|
||||
if (isHighlighted() &&
|
||||
!m_submenu_menubox &&
|
||||
getParent() &&
|
||||
getParent()->type() == kMenuWidget) {
|
||||
static_cast<Menu*>(getParent())->unhighlightItem();
|
||||
}
|
||||
|
||||
// TODO theme specific!!
|
||||
invalidate();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user