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/windowmanager/intern/wm_toolsystem.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/windowmanager/intern/wm_toolsystem.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_toolsystem.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/windowmanager/intern/wm_toolsystem.c b/source/blender/windowmanager/intern/wm_toolsystem.c index 9184a2b4566..e335800636c 100644 --- a/source/blender/windowmanager/intern/wm_toolsystem.c +++ b/source/blender/windowmanager/intern/wm_toolsystem.c @@ -377,10 +377,9 @@ void WM_toolsystem_ref_set_from_runtime(struct bContext *C, /* Set the cursor if possible, if not - it's fine as entering the region will refresh it. */ { wmWindow *win = CTX_wm_window(C); - ScrArea *sa = CTX_wm_area(C); - if (win && sa) { + if (win != NULL) { win->addmousemove = true; - sa->flag |= AREA_FLAG_CURSOR_UPDATE; + win->tag_cursor_refresh = true; } } |