xkb: inline SProcXkbGetCompatMap()

No need to have whole extra functions for just a few LoC.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-09-24 17:13:38 +02:00
committed by Enrico Weigelt
parent 8c545a6528
commit 1cddcc087f
2 changed files with 7 additions and 12 deletions

View File

@@ -2765,6 +2765,12 @@ ProcXkbGetCompatMap(ClientPtr client)
REQUEST(xkbGetCompatMapReq);
REQUEST_SIZE_MATCH(xkbGetCompatMapReq);
if (client->swapped) {
swaps(&stuff->deviceSpec);
swaps(&stuff->firstSI);
swaps(&stuff->nSI);
}
if (!(client->xkbClientFlags & _XkbClientInitialized))
return BadAccess;

View File

@@ -228,17 +228,6 @@ SProcXkbSetMap(ClientPtr client)
return ProcXkbSetMap(client);
}
static int _X_COLD
SProcXkbGetCompatMap(ClientPtr client)
{
REQUEST(xkbGetCompatMapReq);
REQUEST_SIZE_MATCH(xkbGetCompatMapReq);
swaps(&stuff->deviceSpec);
swaps(&stuff->firstSI);
swaps(&stuff->nSI);
return ProcXkbGetCompatMap(client);
}
static int _X_COLD
SProcXkbSetCompatMap(ClientPtr client)
{
@@ -411,7 +400,7 @@ SProcXkbDispatch(ClientPtr client)
case X_kbSetMap:
return SProcXkbSetMap(client);
case X_kbGetCompatMap:
return SProcXkbGetCompatMap(client);
return ProcXkbGetCompatMap(client);
case X_kbSetCompatMap:
return SProcXkbSetCompatMap(client);
case X_kbGetIndicatorState: