mirror of
https://github.com/X11Libre/xserver.git
synced 2026-11-21 06:27:21 +00:00
dix: ProcSetSelectionOwner(): use X_REQUEST_* macros
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
50e60fe08f
commit
6927dee586
1 changed files with 5 additions and 9 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue