don't crash when you press enter with nothing selected in the menu
Mikael Magnusson mikachu@comhem.se
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
openbox/event.c
→
openbox/event.c
@@ -1566,7 +1566,7 @@ /* Enter runs the active item or goes into the submenu.
Control-Enter runs it without closing the menu. */ if (frame->child) menu_frame_select_next(frame->child); - else + else if (frame->selected) menu_entry_frame_execute(frame->selected, state, ev->xkey.time); }