Menu: some helpful comments
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user