From: Dana Jansens Date: Thu, 19 Jul 2007 18:24:30 +0000 (-0400) Subject: use keyrelease to fire menu actions not key press X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=e4f055b0c1b162936748ceea70c70be187321690;p=chaz%2Fopenbox 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 --- 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; }