From: Scott Moynes Date: Sat, 26 Jul 2003 19:58:22 +0000 (+0000) Subject: Close menu on click if outside the menu. X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=b8715ba30901551998adff78603015a5dd089cb0;p=chaz%2Fopenbox Close menu on click if outside the menu. I think, haven't tested. --- 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: