Xi: Use correct destination when swapping barrier events
Write the swapped values to the destination rather than the source. Signed-off-by: Keith Packard <keithp@keithp.com> Reviewed-by: Jasper St. Pierre <jstpierre@mecheye.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
		
							parent
							
								
									b86b3d10bb
								
							
						
					
					
						commit
						dbba50a128
					
				
							
								
								
									
										34
									
								
								Xi/extinit.c
								
								
								
								
							
							
						
						
									
										34
									
								
								Xi/extinit.c
								
								
								
								
							|  | @ -848,24 +848,24 @@ SBarrierEvent(xXIBarrierEvent * from, | ||||||
| 
 | 
 | ||||||
|     *to = *from; |     *to = *from; | ||||||
| 
 | 
 | ||||||
|     swaps(&from->sequenceNumber); |     swaps(&to->sequenceNumber); | ||||||
|     swapl(&from->length); |     swapl(&to->length); | ||||||
|     swaps(&from->evtype); |     swaps(&to->evtype); | ||||||
|     swapl(&from->time); |     swapl(&to->time); | ||||||
|     swaps(&from->deviceid); |     swaps(&to->deviceid); | ||||||
|     swaps(&from->sourceid); |     swaps(&to->sourceid); | ||||||
|     swapl(&from->event); |     swapl(&to->event); | ||||||
|     swapl(&from->root); |     swapl(&to->root); | ||||||
|     swapl(&from->root_x); |     swapl(&to->root_x); | ||||||
|     swapl(&from->root_y); |     swapl(&to->root_y); | ||||||
| 
 | 
 | ||||||
|     swapl(&from->dx.integral); |     swapl(&to->dx.integral); | ||||||
|     swapl(&from->dx.frac); |     swapl(&to->dx.frac); | ||||||
|     swapl(&from->dy.integral); |     swapl(&to->dy.integral); | ||||||
|     swapl(&from->dy.frac); |     swapl(&to->dy.frac); | ||||||
|     swapl(&from->dtime); |     swapl(&to->dtime); | ||||||
|     swapl(&from->barrier); |     swapl(&to->barrier); | ||||||
|     swapl(&from->eventid); |     swapl(&to->eventid); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| /** Event swapping function for XI2 events. */ | /** Event swapping function for XI2 events. */ | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue