all repos — openbox @ 17676168255fcf5cbec9ea5dadcee546c5ab7bbb

openbox fork - make it a bit more like ryudo

dont leave non-submenu items selected when the mouse isnt over them
Dana Jansens danakj@orodu.net
commit

17676168255fcf5cbec9ea5dadcee546c5ab7bbb

parent

e1a618444eee98258cad7b68862e3f1963e66e56

1 files changed, 10 insertions(+), 0 deletions(-)

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

@@ -1181,6 +1181,16 @@ if ((e = menu_entry_frame_under(ev->xmotion.x_root,

ev->xmotion.y_root))) menu_frame_select(f, e); } + { + ObMenuFrame *a; + + a = find_active_menu(); + if (a && a != f && + a->selected->entry->type != OB_MENU_ENTRY_TYPE_SUBMENU) + { + menu_frame_select(a, NULL); + } + } break; case KeyPress: if (ev->xkey.keycode == ob_keycode(OB_KEY_ESCAPE))