if (it) {
e = it->data;
- if (e->entry->type != OB_MENU_ENTRY_TYPE_SEPARATOR)
+ if (e->entry->type == OB_MENU_ENTRY_TYPE_SUBMENU)
+ break;
+ if (e->entry->type == OB_MENU_ENTRY_TYPE_NORMAL &&
+ e->entry->data.normal.enabled)
break;
}
}
if (it) {
e = it->data;
- if (e->entry->type != OB_MENU_ENTRY_TYPE_SEPARATOR)
+ if (e->entry->type == OB_MENU_ENTRY_TYPE_SUBMENU)
+ break;
+ if (e->entry->type == OB_MENU_ENTRY_TYPE_NORMAL &&
+ e->entry->data.normal.enabled)
break;
}
}