From e4f055b0c1b162936748ceea70c70be187321690 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 19 Jul 2007 14:24:30 -0400 Subject: [PATCH 1/1] use keyrelease to fire menu actions not key press when keypress is used, the keyrelease gets sent to whatever window is focused. if it's a stupid program - like most any program - it will update its user_time, preventing the new window from being focused --- openbox/event.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbox/event.c b/openbox/event.c index eb2646b5..3b6d1743 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -1778,7 +1778,7 @@ static gboolean event_handle_menu(XEvent *ev) f->child == e->frame) menu_frame_select(e->frame, e, FALSE); break; - case KeyPress: + case KeyRelease: ret = event_handle_menu_keyboard(ev); break; } -- 2.45.2