diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-08-13 12:19:56 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-08-13 12:21:23 +0400 |
commit | 8d801c3afd39d66d249c8b7e45249339ad297fcf (patch) | |
tree | b13c8e32293c9658107aceab4358f1aca0520367 /source/blender/editors | |
parent | 2eebe611e42c149aeafcf5bcd18c7a477c813e38 (diff) |
Correct menu items active behavior applying to dialogs
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/interface/interface_handlers.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c index 7cc21457084..30ce7c6b1ec 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -7941,6 +7941,9 @@ static int ui_handle_menu_button(bContext *C, const wmEvent *event, uiPopupBlock if (event->val == KM_RELEASE) { /* pass, needed so we can exit active menu-items when click-dragging out of them */ } + else if (!ui_block_is_menu(but->block)) { + /* pass, skip for dialogs */ + } else if (!ui_mouse_inside_region(but->active->region, event->x, event->y)) { /* pass, needed to click-exit outside of non-flaoting menus */ } |