mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 21:41:25 +00:00
Xi: inline SProcXGetDeviceDontPropagateList()
No need to have a hole bunch of extra functions, if we can just easily inline the few relevant lines. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
7319dc09eb
commit
7f25e705f5
@@ -368,7 +368,7 @@ SProcIDispatch(ClientPtr client)
|
||||
case X_ChangeDeviceDontPropagateList:
|
||||
return ProcXChangeDeviceDontPropagateList(client);
|
||||
case X_GetDeviceDontPropagateList:
|
||||
return SProcXGetDeviceDontPropagateList(client);
|
||||
return ProcXGetDeviceDontPropagateList(client);
|
||||
case X_GetDeviceMotionEvents:
|
||||
return SProcXGetDeviceMotionEvents(client);
|
||||
case X_ChangeKeyboardDevice:
|
||||
|
||||
24
Xi/getprop.c
24
Xi/getprop.c
@@ -68,21 +68,6 @@ SOFTWARE.
|
||||
extern XExtEventInfo EventInfo[];
|
||||
extern int ExtEventIndex;
|
||||
|
||||
/***********************************************************************
|
||||
*
|
||||
* Handle a request from a client with a different byte order.
|
||||
*
|
||||
*/
|
||||
|
||||
int _X_COLD
|
||||
SProcXGetDeviceDontPropagateList(ClientPtr client)
|
||||
{
|
||||
REQUEST(xGetDeviceDontPropagateListReq);
|
||||
REQUEST_SIZE_MATCH(xGetDeviceDontPropagateListReq);
|
||||
swapl(&stuff->window);
|
||||
return (ProcXGetDeviceDontPropagateList(client));
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
*
|
||||
* This procedure lists the input devices available to the server.
|
||||
@@ -92,15 +77,18 @@ SProcXGetDeviceDontPropagateList(ClientPtr client)
|
||||
int
|
||||
ProcXGetDeviceDontPropagateList(ClientPtr client)
|
||||
{
|
||||
REQUEST(xGetDeviceDontPropagateListReq);
|
||||
REQUEST_SIZE_MATCH(xGetDeviceDontPropagateListReq);
|
||||
|
||||
if (client->swapped)
|
||||
swapl(&stuff->window);
|
||||
|
||||
CARD16 count = 0;
|
||||
int i, rc;
|
||||
XEventClass *buf = NULL, *tbuf;
|
||||
WindowPtr pWin;
|
||||
OtherInputMasks *others;
|
||||
|
||||
REQUEST(xGetDeviceDontPropagateListReq);
|
||||
REQUEST_SIZE_MATCH(xGetDeviceDontPropagateListReq);
|
||||
|
||||
xGetDeviceDontPropagateListReply rep = {
|
||||
.RepType = X_GetDeviceDontPropagateList,
|
||||
};
|
||||
|
||||
@@ -69,7 +69,6 @@ int ProcXUngrabDeviceButton(ClientPtr client);
|
||||
int ProcXUngrabDevice(ClientPtr client);
|
||||
int ProcXUngrabDeviceKey(ClientPtr client);
|
||||
|
||||
int SProcXGetDeviceDontPropagateList(ClientPtr client);
|
||||
int SProcXGetDeviceMotionEvents(ClientPtr client);
|
||||
int SProcXGetExtensionVersion(ClientPtr client);
|
||||
int SProcXIAllowEvents(ClientPtr client);
|
||||
|
||||
Reference in New Issue
Block a user