Changeset 20799

Show
Ignore:
Timestamp:
04/24/07 17:00:20 (19 months ago)
Author:
jackburton
Message:

If there's a opened menu, the window should "eat" the B_MOUSE_DOWN
message. This fixes bug #582 and now menus behave like on beos (or
should, at least)

Files:
1 modified

Legend:

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

    r20737 r20799  
    10111011                        // Close an eventually opened menu, unless the target is the menu itself 
    10121012                        BMenu *menu = dynamic_cast<BMenu *>(fFocus); 
    1013                         if (menu != NULL && menu != view) 
     1013                        if (menu != NULL && menu != view && menu->State() != MENU_STATE_CLOSED) { 
    10141014                                menu->QuitTracking(); 
     1015                                return;                  
     1016                        } 
    10151017                         
    10161018                        if (view != NULL) {