diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-02-22 02:41:19 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-02-22 02:50:25 +0300 |
commit | 0b626703f99fb7146915f4be9e7013bae0c64c61 (patch) | |
tree | 77cb94ed9d019d25a36e9ec6278be58bfd0ad827 /source/blender/editors/interface/interface_region_popup.c | |
parent | 3e777653620a9261c35319fae64b3aa0eb83cdd4 (diff) |
Cleanup: internal changes to cursor resetting
- Move gizmo cursor check into ED_region_cursor_set so the result of
calling this function is the same as flagging for cursor update.
- Use tagging in ui_popup_block_remove which avoids adding a
mouse-move event in case the cursor needs to be changed again.
Diffstat (limited to 'source/blender/editors/interface/interface_region_popup.c')
-rw-r--r-- | source/blender/editors/interface/interface_region_popup.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/editors/interface/interface_region_popup.c b/source/blender/editors/interface/interface_region_popup.c index 867ac652505..dee462e929a 100644 --- a/source/blender/editors/interface/interface_region_popup.c +++ b/source/blender/editors/interface/interface_region_popup.c @@ -555,9 +555,7 @@ static void ui_popup_block_remove(bContext *C, uiPopupBlockHandle *handle) /* reset to region cursor (only if there's not another menu open) */ if (BLI_listbase_is_empty(&sc->regionbase)) { - ED_region_cursor_set(win, ctx_sa, ctx_ar); - /* in case cursor needs to be changed again */ - WM_event_add_mousemove(C); + ctx_sa->flag |= AREA_FLAG_CURSOR_UPDATE; } if (handle->scrolltimer) { |