summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorScott Moynes <smoynes@nexus.carleton.ca>2003-07-26 19:58:22 +0000
committerScott Moynes <smoynes@nexus.carleton.ca>2003-07-26 19:58:22 +0000
commitb8715ba30901551998adff78603015a5dd089cb0 (patch)
treeb713e5e77cc8fc87d0afddcd9357be675d74ace6 /openbox
parent702995014a0ef567e98899bda931901d98461341 (diff)
Close menu on click if outside the menu.
I think, haven't tested.
Diffstat (limited to 'openbox')
-rw-r--r--openbox/event.c4
1 files changed, 4 insertions, 0 deletions
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: