app: gimp_motion_buffer_eval_event(): always set last_read_motion_time

We need it for correctly requesting device history, so we must
remember it also when returning FALSE and ignoring the event.
This commit is contained in:
Michael Natterer
2011-04-17 19:34:02 +02:00
parent 7ab72eb54a
commit 41b469fcf5
2 changed files with 7 additions and 3 deletions

View File

@ -218,6 +218,11 @@ gimp_motion_buffer_eval_event (GimpMotionBuffer *buffer,
gdouble distance = 1.0;
gboolean event_fill = (inertia_factor > 0.0);
/* the last_read_motion_time most be set unconditionally, so set
* it early
*/
buffer->last_read_motion_time = time;
/* Smoothing causes problems with cursor tracking when zoomed above
* screen resolution so we need to supress it.
*/
@ -377,8 +382,6 @@ 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;