From: Dana Jansens Date: Fri, 29 Aug 2003 08:52:12 +0000 (+0000) Subject: properly select the first menu item in the child menu when using the 'right' keycode X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=53134db127fe252417132d244829e71355f8f991;p=chaz%2Fopenbox properly select the first menu item in the child menu when using the 'right' keycode --- diff --git a/openbox/event.c b/openbox/event.c index ec6cb06b..04e65145 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -1200,8 +1200,8 @@ static void event_handle_menu(XEvent *ev) menu_frame_select(f, NULL); } else if (ev->xkey.keycode == ob_keycode(OB_KEY_RIGHT)) { ObMenuFrame *f; - if ((f = find_active_menu()) && f->child && f->child->entries) - menu_frame_select(f->child, f->child->entries->data); + if ((f = find_active_menu()) && f->child) + menu_frame_select_next(f->child); } else if (ev->xkey.keycode == ob_keycode(OB_KEY_UP)) { ObMenuFrame *f; if ((f = find_active_menu()))