all repos — openbox @ 47744e03c3016e98940a4ce6393d9f6403ca794c

openbox fork - make it a bit more like ryudo

don't crash when you press enter with nothing selected in the menu
Mikael Magnusson mikachu@comhem.se
commit

47744e03c3016e98940a4ce6393d9f6403ca794c

parent

7f9080c6a0679aab23e7519dcc6d8498f4e28a0f

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M openbox/event.copenbox/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); }