dont lose the menu selection while puttin the mouse over a separator (properly)
This commit is contained in:
parent
d298cfb786
commit
7b06426b51
1 changed files with 4 additions and 4 deletions
|
@ -617,12 +617,12 @@ void menu_frame_select(ObMenuFrame *self, ObMenuEntryFrame *entry)
|
|||
ObMenuEntryFrame *old = self->selected;
|
||||
ObMenuFrame *oldchild = self->child;
|
||||
|
||||
if (entry && entry->entry->type == OB_MENU_ENTRY_TYPE_SEPARATOR)
|
||||
entry = old;
|
||||
|
||||
if (old == entry) return;
|
||||
|
||||
if (entry && entry->entry->type != OB_MENU_ENTRY_TYPE_SEPARATOR)
|
||||
self->selected = entry;
|
||||
else
|
||||
self->selected = NULL;
|
||||
|
||||
if (old)
|
||||
menu_entry_frame_render(old);
|
||||
|
|
Loading…
Reference in a new issue