projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09f4a0c
)
properly select the first menu item in the child menu when using the 'right' keycode
author
Dana Jansens
<danakj@orodu.net>
Fri, 29 Aug 2003 08:52:12 +0000
(08:52 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Fri, 29 Aug 2003 08:52:12 +0000
(08:52 +0000)
openbox/event.c
patch
|
blob
|
history
diff --git
a/openbox/event.c
b/openbox/event.c
index ec6cb06b138aeb7277a9be6e210866072fc00080..04e651451dad1a7d9ea86acae5d1463521c031a3 100644
(file)
--- 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()))