mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 08:04:30 +00:00
dix: inline SProcChangeProperty()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
cf4b49ac84
commit
45aa28d4d2
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -349,7 +349,7 @@ int (*SwappedProcVector[256]) (ClientPtr /* client */) = {
|
||||
ProcQueryTree, /* 15 */
|
||||
ProcInternAtom,
|
||||
ProcGetAtomName,
|
||||
SProcChangeProperty,
|
||||
ProcChangeProperty,
|
||||
ProcDeleteProperty,
|
||||
SProcGetProperty, /* 20 */
|
||||
ProcListProperties,
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user