(submit/xrandr-swap-fix) randr: fix wrong call to RRGetScreenResources() in swapped case
ProcRRGetScreenResources() vs. RRGetScreenResourcesCurrent() have different
semantics - this also must be followed in byte-swapped case.
Fixes: fc70839431 - Add server support for RRGetScreenResourcesCurrent
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
			
			
This commit is contained in:
		
							parent
							
								
									a9e5fbfbce
								
							
						
					
					
						commit
						80f15897da
					
				|  | @ -116,7 +116,7 @@ SProcRRGetScreenResourcesCurrent(ClientPtr client) | ||||||
|     REQUEST_SIZE_MATCH(xRRGetScreenResourcesCurrentReq); |     REQUEST_SIZE_MATCH(xRRGetScreenResourcesCurrentReq); | ||||||
|     swaps(&stuff->length); |     swaps(&stuff->length); | ||||||
|     swapl(&stuff->window); |     swapl(&stuff->window); | ||||||
|     return (*ProcRandrVector[stuff->randrReqType]) (client); |     return ProcRRGetScreenResourcesCurrent(client); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| static int _X_COLD | static int _X_COLD | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue