highlight for motion events in the menu too, this is useful when the enter gets ignored cuz the mouse was already inside it
This commit is contained in:
parent
51c3c8c34a
commit
5a3a7668d9
1 changed files with 5 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue