summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2011-04-18 13:05:08 +0000
committerManolo Gouy <Manolo>2011-04-18 13:05:08 +0000
commitaa930a6d21413af20c651c163393835064d0f668 (patch)
treef6731197ea821e4e4dd5fdee8b7c0b1c9bbd6425 /src
parentb51f47c437463e1732f43dfad6e318b0ae44e548 (diff)
Fix STR #2603: deselected menu item when mouse enters menu bar out from any menu title.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8604 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
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;
}