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:
Michael Natterer
2011-04-17 19:05:49 +02:00
parent e09520fb08
commit 2dbaf7f490
2 changed files with 2 additions and 5 deletions

View File

@ -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;

View File

@ -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;