summaryrefslogtreecommitdiff
path: root/gdk/x11
diff options
context:
space:
mode:
authorMichael Natterer <mitch@imendio.com>2008-01-04 16:21:42 +0000
committerMichael Natterer <mitch@src.gnome.org>2008-01-04 16:21:42 +0000
commit3db2d18042e24fd2fd12f2d36b53d43f454d4097 (patch)
tree4909b2a5fc0d51e6d436abafe23a2e87db010d1d /gdk/x11
parent6f1d571c04b1d8aa4ec28059e6560983c9bb8d6a (diff)
downloadgtk+-3db2d18042e24fd2fd12f2d36b53d43f454d4097.tar.gz
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
Diffstat (limited to 'gdk/x11')
-rw-r--r--gdk/x11/gdkinput-x11.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/gdk/x11/gdkinput-x11.c b/gdk/x11/gdkinput-x11.c
index 46600e416d..7a2d30be15 100644
--- a/gdk/x11/gdkinput-x11.c
+++ b/gdk/x11/gdkinput-x11.c
@@ -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;