From b8715ba30901551998adff78603015a5dd089cb0 Mon Sep 17 00:00:00 2001 From: Scott Moynes Date: Sat, 26 Jul 2003 19:58:22 +0000 Subject: [PATCH] Close menu on click if outside the menu. I think, haven't tested. --- openbox/event.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/openbox/event.c b/openbox/event.c index 366c91ad..69c85100 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -1010,6 +1010,10 @@ static void event_handle_menu(ObClient *client, XEvent *e) } } } + + /* will call the menu_hide() for each submenu as well */ + if (!it) + menu_hide(menu_visible->data); break; case MotionNotify: -- 2.45.2