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
					Michael Natterer
				
			
				
					committed by
					
						 Michael Natterer
						Michael Natterer
					
				
			
			
				
	
			
			
			 Michael Natterer
						Michael Natterer
					
				
			
						parent
						
							6f1d571c04
						
					
				
				
					commit
					3db2d18042
				
			| @ -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; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user