From 80f15897dab52a482e77b1493de275cca176bc8d Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Mon, 29 Jul 2024 15:01:08 +0200 Subject: [PATCH] (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 --- randr/rrsdispatch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/randr/rrsdispatch.c b/randr/rrsdispatch.c index 6de8775b0..a73aea7e4 100644 --- a/randr/rrsdispatch.c +++ b/randr/rrsdispatch.c @@ -116,7 +116,7 @@ SProcRRGetScreenResourcesCurrent(ClientPtr client) REQUEST_SIZE_MATCH(xRRGetScreenResourcesCurrentReq); swaps(&stuff->length); swapl(&stuff->window); - return (*ProcRandrVector[stuff->randrReqType]) (client); + return ProcRRGetScreenResourcesCurrent(client); } static int _X_COLD