From 5a3a7668d9e3ebe995603fadd2da22cbe1c31c83 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 22 Apr 2007 03:18:55 +0000 Subject: [PATCH] highlight for motion events in the menu too, this is useful when the enter gets ignored cuz the mouse was already inside it --- openbox/event.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openbox/event.c b/openbox/event.c index ced93e04..67afabc9 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -1300,6 +1300,11 @@ static void event_handle_menu(XEvent *ev) { menu_frame_select(e->frame, NULL); } + case MotionNotify: + if ((e = menu_entry_frame_under(ev->xmotion.x_root, + ev->xmotion.y_root))) + menu_frame_select(e->frame, e); + break; case KeyPress: if (ev->xkey.keycode == ob_keycode(OB_KEY_ESCAPE)) menu_frame_hide_all(); -- 2.44.0