Menu: some helpful comments

This commit is contained in:
John Scipione
2013-08-21 19:46:39 -04:00
parent d1716b277c
commit d5de9547c7
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -2485,7 +2485,7 @@ BMenu::_OverSubmenu(BMenuItem* item, BPoint loc)
if (subMenu == NULL || subMenu->Window() == NULL)
return false;
// we assume that loc is in screen coords {
// assume that loc is in screen coordinates
if (subMenu->Window()->Frame().Contains(loc))
return true;
+2
View File
@@ -316,6 +316,8 @@ BMenuBar::MouseDown(BPoint where)
if ((mouse_mode() == B_FOCUS_FOLLOWS_MOUSE)
|| ((mouse_mode() == B_CLICK_TO_FOCUS_MOUSE)
&& ((buttons & B_SECONDARY_MOUSE_BUTTON) != 0))) {
// right-click to bring-to-front and send-to-back
// (might cause some regressions in FFM)
window->Activate();
window->UpdateIfNeeded();
}