dix: ProcSetSelectionOwner(): use X_REQUEST_* macros

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2026-04-30 19:16:20 +02:00 • committed by Enrico Weigelt
commit 6927dee586

View file

@ -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);