projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9713a62
)
be explicit about the event
author
Dana Jansens
<danakj@orodu.net>
Sat, 21 Jul 2007 13:48:10 +0000
(09:48 -0400)
committer
Dana Jansens
<danakj@orodu.net>
Sat, 21 Jul 2007 13:48:10 +0000
(09:48 -0400)
openbox/event.c
patch
|
blob
|
history
diff --git
a/openbox/event.c
b/openbox/event.c
index
fd12c25
..
c6bf6df
100644
(file)
--- a/
openbox/event.c
+++ b/
openbox/event.c
@@
-1663,7
+1663,9
@@
static gboolean event_handle_menu_keyboard(XEvent *ev)
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. */