don't forget to set the time in the returned GdkTimeCoords.

2008-01-04  Michael Natterer  <mitch@imendio.com>

	* gdk/x11/gdkinput-x11.c (_gdk_device_get_history): don't forget
	to set the time in the returned GdkTimeCoords.


svn path=/trunk/; revision=19304
This commit is contained in:
Michael Natterer 2008-01-04 16:21:42 +00:00 committed by Michael Natterer
parent 6f1d571c04
commit 3db2d18042
2 changed files with 15 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2008-01-04 Michael Natterer <mitch@imendio.com>
* gdk/x11/gdkinput-x11.c (_gdk_device_get_history): don't forget
to set the time in the returned GdkTimeCoords.
2008-01-03 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkfilechooserdefault.c (recent_sort_mru): Use the

View File

@ -754,11 +754,16 @@ _gdk_device_get_history (GdkDevice *device,
if (device_coords)
{
coords = _gdk_device_allocate_history (device, *n_events);
for (i=0; i<*n_events; i++)
gdk_input_translate_coordinates (gdkdev, input_window,
device_coords[i].data,
coords[i]->axes, NULL, NULL);
for (i = 0; i < *n_events; i++)
{
coords[i]->time = device_coords[i].time;
gdk_input_translate_coordinates (gdkdev, input_window,
device_coords[i].data,
coords[i]->axes, NULL, NULL);
}
XFreeDeviceMotionEvents (device_coords);
*events = coords;