From 44862110dec81a45fb9185ef45007e6e5c18cb89 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 25 Feb 2020 09:19:31 +1100 Subject: WM: move cursor refresh tag to the window Avoids having to check the current area is NULL. --- source/blender/makesdna/DNA_screen_types.h | 2 +- source/blender/makesdna/DNA_windowmanager_types.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'source/blender/makesdna') diff --git a/source/blender/makesdna/DNA_screen_types.h b/source/blender/makesdna/DNA_screen_types.h index c0e62f01e66..8fec5354d36 100644 --- a/source/blender/makesdna/DNA_screen_types.h +++ b/source/blender/makesdna/DNA_screen_types.h @@ -474,7 +474,7 @@ enum { /** Update size of regions within the area. */ AREA_FLAG_REGION_SIZE_UPDATE = (1 << 3), AREA_FLAG_ACTIVE_TOOL_UPDATE = (1 << 4), - AREA_FLAG_CURSOR_UPDATE = (1 << 5), + // AREA_FLAG_UNUSED_5 = (1 << 5), AREA_FLAG_UNUSED_6 = (1 << 6), /* cleared */ diff --git a/source/blender/makesdna/DNA_windowmanager_types.h b/source/blender/makesdna/DNA_windowmanager_types.h index b1a797a35fe..8393ca6485f 100644 --- a/source/blender/makesdna/DNA_windowmanager_types.h +++ b/source/blender/makesdna/DNA_windowmanager_types.h @@ -254,7 +254,8 @@ typedef struct wmWindow { short grabcursor; /** Internal: tag this for extra mousemove event, * makes cursors/buttons active on UI switching. */ - short addmousemove; + char addmousemove; + char tag_cursor_refresh; /** Winid also in screens, is for retrieving this window after read. */ int winid; -- cgit v1.2.3