From: Dana Jansens Date: Mon, 28 May 2007 03:48:04 +0000 (+0000) Subject: make mouse clicks higher up in the menu select the submenu X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=0299cdedd7faf9d079f5ba36e5234fed459d88d1;p=chaz%2Fopenbox make mouse clicks higher up in the menu select the submenu --- diff --git a/openbox/event.c b/openbox/event.c index 1b387bdf..9b3021b4 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -1682,8 +1682,11 @@ static gboolean event_handle_menu(XEvent *ev) { if ((e = menu_entry_frame_under(ev->xbutton.x_root, ev->xbutton.y_root))) + { + menu_frame_select(e->frame, e, TRUE); menu_entry_frame_execute(e, ev->xbutton.state, ev->xbutton.time); + } else menu_frame_hide_all(); }