diff options
author | Campbell Barton <ideasman42@gmail.com> | 2017-10-16 05:01:09 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2017-10-16 06:27:10 +0300 |
commit | cae97709549224a94ec71a4de5f159af1d876f0a (patch) | |
tree | 75a8f59afc38205918e010386e684148b9e29e27 /source/blender/windowmanager/WM_types.h | |
parent | 811dbf55253bf3db9065710c6998d943ef7d169d (diff) |
Cleanup: rename gesture mode to is_active
Wasn't obvious what this did at a glance.
Diffstat (limited to 'source/blender/windowmanager/WM_types.h')
-rw-r--r-- | source/blender/windowmanager/WM_types.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/windowmanager/WM_types.h b/source/blender/windowmanager/WM_types.h index f6049f10378..1c8d12973c6 100644 --- a/source/blender/windowmanager/WM_types.h +++ b/source/blender/windowmanager/WM_types.h @@ -409,11 +409,14 @@ typedef struct wmNotifier { typedef struct wmGesture { struct wmGesture *next, *prev; int event_type; /* event->type */ - int mode; /* for modal callback */ int type; /* gesture type define */ int swinid; /* initial subwindow id where it started */ int points; /* optional, amount of points stored */ int size; /* optional, maximum amount of points stored */ + + /* For modal operators which may be running idle, waiting for an event to activate the gesture. + * Typically this is set when the user is click-dragging the gesture (border and circle select for eg). */ + uint is_active : 1; void *customdata; /* customdata for border is a recti */ |