From: Mikael Magnusson Date: Fri, 17 Sep 2010 02:00:38 +0000 (+0200) Subject: Ignore MotionNotify on menus, it reset the submenudelay timer X-Git-Tag: mikabox-3.5-7~35^2~11 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=9a06cd1be3de7af3c173ccca121665c51d63eceb;p=mikachu%2Fopenbox.git 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. --- diff --git a/openbox/event.c b/openbox/event.c index b59707bb..9e122411 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -1809,18 +1809,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;