Author: manolo
Date: 2011-04-18 06:05:08 -0700 (Mon, 18 Apr 2011)
New Revision: 8604
Log:
Fix STR #2603: deselected menu item when mouse enters menu bar out from any
menu title.
Modified:
branches/branch-1.3/src/Fl_Menu.cxx
Modified: branches/branch-1.3/src/Fl_Menu.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Menu.cxx 2011-04-18 11:45:46 UTC (rev 8603)
+++ branches/branch-1.3/src/Fl_Menu.cxx 2011-04-18 13:05:08 UTC (rev 8604)
@@ -535,6 +535,10 @@
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;
}
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit