all repos — openbox @ 70c074afe84ddbe4058f67a1fce062a769b449fc

openbox fork - make it a bit more like ryudo

Use submenuShowDelay when navigating menus with the keyboard
Dana Jansens danakj@orodu.net
commit

70c074afe84ddbe4058f67a1fce062a769b449fc

parent

f163c46eaf01ced8405fa36a3bf4a5c488f0f5aa

2 files changed, 7 insertions(+), 3 deletions(-)

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

@@ -1712,7 +1712,11 @@ }

else if (ob_keycode_match(keycode, OB_KEY_RIGHT)) { /* Right goes to the selected submenu */ - if (frame->child) menu_frame_select_next(frame->child); + if (frame->selected->entry->type == OB_MENU_ENTRY_TYPE_SUBMENU) { + /* make sure it is visible */ + menu_frame_select(frame, frame->selected, TRUE); + menu_frame_select_next(frame->child); + } ret = TRUE; }
M openbox/menuframe.copenbox/menuframe.c

@@ -1289,7 +1289,7 @@ break;

} } } - menu_frame_select(self, it ? it->data : NULL, TRUE); + menu_frame_select(self, it ? it->data : NULL, FALSE); } void menu_frame_select_next(ObMenuFrame *self)

@@ -1314,5 +1314,5 @@ break;

} } } - menu_frame_select(self, it ? it->data : NULL, TRUE); + menu_frame_select(self, it ? it->data : NULL, FALSE); }