summaryrefslogtreecommitdiff
path: root/openbox/event.c
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2010-09-17 04:00:38 +0200
committerDana Jansens <danakj@orodu.net>2011-01-24 14:19:22 -0500
commit6f92931f843f8049d27d73937977b54d5f869499 (patch)
treec5c84f2ca993394276c64fc3219ea301a76e9ffa /openbox/event.c
parent6d0f44e1d15b258fb29f303e2799b3184e4dcb3a (diff)
Ignore MotionNotify on menus, it reset the submenudelay timer
It also caused the slightest cursor movement to activate the entry under the cursor when navigating via the keyboard.
Diffstat (limited to 'openbox/event.c')
-rw-r--r--openbox/event.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/openbox/event.c b/openbox/event.c
index 8e0a6bb3..c419e39a 100644
--- a/openbox/event.c
+++ b/openbox/event.c
@@ -1810,18 +1810,6 @@ static gboolean event_handle_menu_input(XEvent *ev)
}
ret = TRUE;
}
- else if (ev->type == MotionNotify) {
- ObMenuFrame *f;
- ObMenuEntryFrame *e;
-
- if ((e = menu_entry_frame_under(ev->xmotion.x_root,
- ev->xmotion.y_root)))
- if (!(f = find_active_menu()) ||
- f == e->frame ||
- f->parent == e->frame ||
- f->child == e->frame)
- menu_frame_select(e->frame, e, FALSE);
- }
else if (ev->type == KeyPress || ev->type == KeyRelease) {
guint mods;
ObMenuFrame *frame;