diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-02-25 01:19:31 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-02-25 01:19:31 +0300 |
commit | 44862110dec81a45fb9185ef45007e6e5c18cb89 (patch) | |
tree | 86172e91139096334660288496de44cd8facbce5 /source/blender/editors/interface/interface_region_popup.c | |
parent | f61f26b033fd7d9c8b8bbf8b77cb24ef902f5ba8 (diff) |
WM: move cursor refresh tag to the window
Avoids having to check the current area is NULL.
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, 2 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_region_popup.c b/source/blender/editors/interface/interface_region_popup.c index b72cc7296db..b509f5e352b 100644 --- a/source/blender/editors/interface/interface_region_popup.c +++ b/source/blender/editors/interface/interface_region_popup.c @@ -554,8 +554,8 @@ static void ui_popup_block_remove(bContext *C, uiPopupBlockHandle *handle) CTX_wm_region_set(C, ctx_ar); /* reset to region cursor (only if there's not another menu open) */ - if ((ctx_sa != NULL) && (BLI_listbase_is_empty(&sc->regionbase))) { - ctx_sa->flag |= AREA_FLAG_CURSOR_UPDATE; + if (BLI_listbase_is_empty(&sc->regionbase)) { + win->tag_cursor_refresh = true; } if (handle->scrolltimer) { |