mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 10:14:52 +00:00
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:
committed by
Enrico Weigelt
parent
8c545a6528
commit
1cddcc087f
@@ -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;
|
||||
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user