dont leave non-submenu items selected when the mouse isnt over them
Dana Jansens danakj@orodu.net
1 files changed,
10 insertions(+),
0 deletions(-)
jump to
M
openbox/event.c
→
openbox/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))