all repos — openbox @ 0545563b190291d2c24231ab379098b668ee8d63

openbox fork - make it a bit more like ryudo

be explicit about the event
Dana Jansens danakj@orodu.net
commit

0545563b190291d2c24231ab379098b668ee8d63

parent

9713a629d77ec43d98d8fba256fbdbcd3b9c46c8

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

jump to
M openbox/event.copenbox/event.c

@@ -1663,7 +1663,9 @@ /* Use KeyRelease events for running things so that the key release doesn't

get sent to the focused application. Allow ControlMask only, and don't bother if the menu is empty */ - else if ((state & ~ControlMask) == 0 && frame->entries) { + else if (ev->type == KeyRelease && (state & ~ControlMask) == 0 && + frame->entries) + { if (keycode == ob_keycode(OB_KEY_RETURN)) { /* Enter runs the active item or goes into the submenu. Control-Enter runs it without closing the menu. */