From 6927dee5868ebe35bef0733db90150b6e70c3b8a Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 30 Apr 2026 19:16:20 +0200 Subject: [PATCH] dix: ProcSetSelectionOwner(): use X_REQUEST_* macros Signed-off-by: Enrico Weigelt, metux IT consult --- dix/selection.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/dix/selection.c b/dix/selection.c index 2645b40301..f1347e0f77 100644 --- a/dix/selection.c +++ b/dix/selection.c @@ -153,20 +153,16 @@ DeleteClientFromAnySelections(ClientPtr client) int ProcSetSelectionOwner(ClientPtr client) { + X_REQUEST_HEAD_STRUCT(xSetSelectionOwnerReq); + X_REQUEST_FIELD_CARD32(window); + X_REQUEST_FIELD_CARD32(selection); + X_REQUEST_FIELD_CARD32(time); + WindowPtr pWin = NULL; TimeStamp time; Selection *pSel; int rc; - REQUEST(xSetSelectionOwnerReq); - REQUEST_SIZE_MATCH(xSetSelectionOwnerReq); - - if (client->swapped) { - swapl(&stuff->window); - swapl(&stuff->selection); - swapl(&stuff->time); - } - UpdateCurrentTime(); time = ClientTimeToServerTime(stuff->time);