app: set "last_read_motion_time" in gimp_motion_buffer_eval_event()
because it is called whenever we process a newly received event.
This commit is contained in:
@ -936,8 +936,6 @@ gimp_display_shell_canvas_tool_events (GtkWidget *canvas,
|
||||
state,
|
||||
history_events[i]->time);
|
||||
}
|
||||
|
||||
shell->motion_buffer->last_read_motion_time = history_events[i]->time;
|
||||
}
|
||||
|
||||
tool_manager_control_active (gimp, GIMP_TOOL_ACTION_RESUME,
|
||||
@ -960,8 +958,6 @@ gimp_display_shell_canvas_tool_events (GtkWidget *canvas,
|
||||
state,
|
||||
time);
|
||||
}
|
||||
|
||||
shell->motion_buffer->last_read_motion_time = time;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -994,7 +990,6 @@ gimp_display_shell_canvas_tool_events (GtkWidget *canvas,
|
||||
|
||||
gimp_motion_buffer_push_event_history (shell->motion_buffer,
|
||||
&image_coords);
|
||||
shell->motion_buffer->last_read_motion_time = time;
|
||||
}
|
||||
|
||||
return_val = TRUE;
|
||||
|
@ -377,6 +377,8 @@ gimp_motion_buffer_eval_event (GimpMotionBuffer *buffer,
|
||||
|
||||
g_array_append_val (buffer->event_queue, *coords);
|
||||
|
||||
buffer->last_read_motion_time = time;
|
||||
|
||||
buffer->last_coords = *coords;
|
||||
buffer->last_motion_time = time;
|
||||
buffer->last_motion_delta_time = delta_time;
|
||||
|
Reference in New Issue
Block a user