mirror of
https://github.com/fltk/fltk.git
synced 2026-06-06 08:32:07 +08:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user