dix: inline SProcChangeProperty()

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-10-30 10:08:30 +01:00
committed by Enrico Weigelt
parent cf4b49ac84
commit 45aa28d4d2
4 changed files with 21 additions and 27 deletions

View File

@@ -257,14 +257,31 @@ ProcRotateProperties(ClientPtr client)
int
ProcChangeProperty(ClientPtr client)
{
REQUEST(xChangePropertyReq);
REQUEST_AT_LEAST_SIZE(xChangePropertyReq);
if (client->swapped) {
swapl(&stuff->window);
swapl(&stuff->property);
swapl(&stuff->type);
swapl(&stuff->nUnits);
switch (stuff->format) {
case 8:
break;
case 16:
SwapRestS(stuff);
break;
case 32:
SwapRestL(stuff);
break;
}
}
char format, mode;
unsigned long len;
int sizeInBytes, err;
uint64_t totalSize;
REQUEST(xChangePropertyReq);
REQUEST_AT_LEAST_SIZE(xChangePropertyReq);
UpdateCurrentTime();
format = stuff->format;
mode = stuff->mode;

View File

@@ -169,28 +169,6 @@ SProcConfigureWindow(ClientPtr client)
}
int _X_COLD
SProcChangeProperty(ClientPtr client)
{
REQUEST(xChangePropertyReq);
REQUEST_AT_LEAST_SIZE(xChangePropertyReq);
swapl(&stuff->window);
swapl(&stuff->property);
swapl(&stuff->type);
swapl(&stuff->nUnits);
switch (stuff->format) {
case 8:
break;
case 16:
SwapRestS(stuff);
break;
case 32:
SwapRestL(stuff);
break;
}
return ((*ProcVector[X_ChangeProperty]) (client));
}
int _X_COLD
SProcGetProperty(ClientPtr client)
{

View File

@@ -349,7 +349,7 @@ int (*SwappedProcVector[256]) (ClientPtr /* client */) = {
ProcQueryTree, /* 15 */
ProcInternAtom,
ProcGetAtomName,
SProcChangeProperty,
ProcChangeProperty,
ProcDeleteProperty,
SProcGetProperty, /* 20 */
ProcListProperties,

View File

@@ -39,7 +39,6 @@ int SProcChangeHosts(ClientPtr client);
int SProcChangeKeyboardControl(ClientPtr client);
int SProcChangeKeyboardMapping(ClientPtr client);
int SProcChangePointerControl(ClientPtr client);
int SProcChangeProperty(ClientPtr client);
int SProcChangeWindowAttributes(ClientPtr client);
int SProcClearToBackground(ClientPtr client);
int SProcConfigureWindow(ClientPtr client);