all repos — openbox @ 5648f0d75c22c817c740a9345e50dfd2ac2f6ffc

openbox fork - make it a bit more like ryudo

maybe this makes everyone happy, only select first entry in menus if it's not a submenu entry
Mikael Magnusson mikachu@comhem.se
commit

5648f0d75c22c817c740a9345e50dfd2ac2f6ffc

parent

310d268bf0b3fbc065e754b9dc25862a60efcaae

1 files changed, 6 insertions(+), 2 deletions(-)

jump to
M openbox/menu.copenbox/menu.c

@@ -315,8 +315,12 @@ }

} if (!menu_frame_show(frame, NULL)) menu_frame_free(frame); - else if (frame->entries) - menu_frame_select_next(frame); + else if (frame->entries) { + ObMenuEntryFrame *e = frame->entries->data; + if (e->entry->type == OB_MENU_ENTRY_TYPE_NORMAL && + e->entry->data.normal.enabled) + menu_frame_select(frame, e); + } } static ObMenuEntry* menu_entry_new(ObMenu *menu, ObMenuEntryType type, gint id)