diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-06-21 12:10:37 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-06-21 12:10:37 +0300 |
commit | 9b91e727be3bee957475dee77ec3a5b0005ddbf9 (patch) | |
tree | 6f086ab3e228944149b024c130549d9be1560ff2 /source/blender/windowmanager | |
parent | 66263905ae8b4372e0e103679dbcb07c8fb7420f (diff) | |
parent | b681461c845cdfe193ee60e288625a29a5157a62 (diff) |
Merge branch 'master' into blender2.8
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_event_system.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c index 982501d9512..a4efffdd8dd 100644 --- a/source/blender/windowmanager/intern/wm_event_system.c +++ b/source/blender/windowmanager/intern/wm_event_system.c @@ -2624,6 +2624,13 @@ static int wm_handlers_do(bContext *C, wmEvent *event, ListBase *handlers) else if (event->val == KM_DBL_CLICK) { event->val = KM_PRESS; action |= wm_handlers_do_intern(C, event, handlers); + event->val = KM_RELEASE; + action |= wm_handlers_do_intern(C, event, handlers); + + if (wm_action_not_handled(action)) { + event->val = KM_CLICK; + action |= wm_handlers_do_intern(C, event, handlers); + } /* revert value if not handled */ if (wm_action_not_handled(action)) { |