Fix #35809: dragging a non-active node in the node editor did not work reliably.

Disabled timer events from the properties editor were cancelling gestures.
This commit is contained in:
Brecht Van Lommel 2013-06-27 15:07:27 +00:00
parent 2403a23953
commit 4d5fffa1a9
2 changed files with 2 additions and 2 deletions

@ -1922,7 +1922,7 @@ static int wm_handlers_do(bContext *C, wmEvent *event, ListBase *handlers)
if (CTX_wm_window(C) == NULL) if (CTX_wm_window(C) == NULL)
return action; return action;
if (!ELEM(event->type, MOUSEMOVE, INBETWEEN_MOUSEMOVE) && !ISTIMER(event->type)) { if (!ELEM3(event->type, MOUSEMOVE, INBETWEEN_MOUSEMOVE, EVENT_NONE) && !ISTIMER(event->type)) {
/* test for CLICK events */ /* test for CLICK events */
if (wm_action_not_handled(action)) { if (wm_action_not_handled(action)) {

@ -3021,7 +3021,7 @@ static void tweak_gesture_modal(bContext *C, const wmEvent *event)
} }
break; break;
default: default:
if (!ISTIMER(event->type)) { if (!ISTIMER(event->type) && event->type != EVENT_NONE) {
WM_gesture_end(C, gesture); WM_gesture_end(C, gesture);
} }
break; break;