diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-09-04 12:35:03 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-09-04 12:35:22 +0300 |
commit | f87533ba6f2b89d3e661e95f8aa0b68730eddc15 (patch) | |
tree | 6a013350b9ab464aa25ddcb337833cbd2ff63415 | |
parent | 31403049401b5eb7a555f4fcd7b8c10c829a7662 (diff) |
UI: keep no-overlap tips open on cursor motion
Was causing flicker.
-rw-r--r-- | source/blender/editors/interface/interface_handlers.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c index 8805907b337..4757a8b1e43 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -7822,8 +7822,11 @@ static int ui_handle_button_event(bContext *C, const wmEvent *event, uiBut *but) } else if (event->x != event->prevx || event->y != event->prevy) { /* re-enable tooltip on mouse move */ - ui_blocks_set_tooltips(ar, true); - button_tooltip_timer_reset(C, but); + if (!UI_but_is_tooltip_no_overlap(but)) { + /* Since this may overlap, close on mouse-move. */ + ui_blocks_set_tooltips(ar, true); + button_tooltip_timer_reset(C, but); + } } break; |