]> Dogcows Code - chaz/openbox/commitdiff
Ignore MotionNotify on menus, it reset the submenudelay timer
authorMikael Magnusson <mikachu@gmail.com>
Fri, 17 Sep 2010 02:00:38 +0000 (04:00 +0200)
committerDana Jansens <danakj@orodu.net>
Mon, 24 Jan 2011 19:19:22 +0000 (14:19 -0500)
It also caused the slightest cursor movement to activate the entry under
the cursor when navigating via the keyboard.

openbox/event.c

index 8e0a6bb379bc58dc0abe19b287324fe77aa85072..c419e39a74a8146451f3abe2eb603cda2b79cfba 100644 (file)
@@ -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;
This page took 0.024401 seconds and 4 git commands to generate.