summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Menu.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Fl_Menu.cxx b/src/Fl_Menu.cxx
index 804568d28..7d005fb17 100644
--- a/src/Fl_Menu.cxx
+++ b/src/Fl_Menu.cxx
@@ -535,6 +535,10 @@ int menuwindow::is_inside(int mx, int my) {
my < y_root() || my >= y_root() + h()) {
return 0;
}
+ if (itemheight == 0 && find_selected(mx, my) == -1) {
+ // in the menubar but out from any menu header
+ return 0;
+ }
return 1;
}