Changeset 24005

Show
Ignore:
Timestamp:
02/18/08 08:24:13 (9 months ago)
Author:
jackburton
Message:

reverted r21961. A menu could be closed, if the user
clicked (with the menu opened) on a view which uses GetMouse() in a loop
(PE, tracker), since it stealed the mousedown message.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • haiku/trunk/src/kits/interface/Window.cpp

    r23870 r24005  
    10591059                        BView *view = dynamic_cast<BView *>(target); 
    10601060                         
    1061                         // Close an eventually opened menu, if this click targets the 
    1062                         // preferred handler, and unless the target is the menu itself 
     1061                        // Close an eventually opened menu 
     1062                        // unless the target is the menu itself 
    10631063                        BMenu *menu = dynamic_cast<BMenu *>(fFocus); 
    1064                         if (menu != NULL && menu != view && PreferredHandler() == target 
     1064                        if (menu != NULL && menu != view 
    10651065                                && menu->State() != MENU_STATE_CLOSED) { 
    10661066                                menu->QuitTracking();