From aa930a6d21413af20c651c163393835064d0f668 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Mon, 18 Apr 2011 13:05:08 +0000 Subject: 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 --- src/Fl_Menu.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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; } -- cgit v1.2.3