projects
/
mikachu
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
2e82715
)
Fix regression: hitting a key accel in a menu didn't move focus to the submenu
author
Dana Jansens
<danakj@orodu.net>
Tue, 9 Nov 2010 01:20:36 +0000
(20:20 -0500)
committer
Dana Jansens
<danakj@orodu.net>
Mon, 24 Jan 2011 19:19:23 +0000
(14:19 -0500)
openbox/event.c
patch
|
blob
|
history
diff --git
a/openbox/event.c
b/openbox/event.c
index
ba39ef9
..
2dde132
100644
(file)
--- a/
openbox/event.c
+++ b/
openbox/event.c
@@
-1945,8
+1945,15
@@
static gboolean event_handle_menu_input(XEvent *ev)
if (found) {
menu_frame_select(frame, found, TRUE);
if (found) {
menu_frame_select(frame, found, TRUE);
- if (num_found == 1)
- frame->press_doexec = TRUE;
+ if (num_found == 1) {
+ if (found->entry->type == OB_MENU_ENTRY_TYPE_SUBMENU) {
+ /* move focus to the child menu */
+ menu_frame_select_next(frame->child);
+ }
+ else {
+ frame->press_doexec = TRUE;
+ }
+ }
ret = TRUE;
}
}
ret = TRUE;
}
}