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
This commit is contained in:
Manolo Gouy
2011-04-18 13:05:08 +00:00
parent b51f47c437
commit aa930a6d21
+4
View File
@@ -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;
}