Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-06-11 04:43:48 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-06-11 05:04:03 +0300
commit6868202899824a46ee28eb02df74efd76f6e3503 (patch)
tree406691340feb9642473a0fb8485349e6d225fa9e /source/blender/windowmanager/WM_types.h
parenta0608340ae14363fb865b4f7d449c77176f953ac (diff)
Fix T62875: Tooltips behave erratically with view gizmos
Improvements to behavior for gizmo tool-tips. - 2D gizmos no longer cancel tool-tips on cursor motion (matching the behavior of UI widgets). - 3D gizmos still close on motion since 3D gizmos may have a large on-screen area which would cause them to stay visible even after the cursor has been moved a large distance. The motion threshold is used so they don't close on unintended cursor motion. - Changing highlighted gizmo now cancels the tool-tip & resets the timer.
Diffstat (limited to 'source/blender/windowmanager/WM_types.h')
-rw-r--r--source/blender/windowmanager/WM_types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/windowmanager/WM_types.h b/source/blender/windowmanager/WM_types.h
index c725b9f51c9..51c75430271 100644
--- a/source/blender/windowmanager/WM_types.h
+++ b/source/blender/windowmanager/WM_types.h
@@ -787,6 +787,8 @@ typedef struct wmTooltipState {
bool *r_exit_on_event);
/** Exit on any event, not needed for buttons since their highlight state is used. */
bool exit_on_event;
+ /** Cursor location at the point of tooltip creation. */
+ int event_xy[2];
/** Pass, use when we want multiple tips, count down to zero. */
int pass;
} wmTooltipState;