Ticket #7022: popupmenu.diff

File popupmenu.diff, 637 bytes (added by dancxjo, 10 years ago)
  • src/kits/interface/PopUpMenu.cpp

     
    317317BPopUpMenu::_Go(BPoint where, bool autoInvoke, bool startOpened,
    318318        BRect *_specialRect, bool async)
    319319{
     320    BRect clickToOpen;
     321
     322    if (startOpened && _specialRect == NULL) {
     323        clickToOpen = BRect(where, where);
     324        clickToOpen.InsetBy(-2, -2);
     325        _specialRect = &clickToOpen;
     326    }
     327
    320328    if (fTrackThread >= B_OK) {
    321329        // we already have an active menu, wait for it to go away before
    322330        // spawning another