mirror of
https://github.com/X11Libre/xserver.git
synced 2026-01-26 14:03:17 +00:00
Xi: inline SProcXGetDeviceMotionEvents()
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:
parent
302533aac8
commit
437515032b
@ -370,7 +370,7 @@ SProcIDispatch(ClientPtr client)
|
||||
case X_GetDeviceDontPropagateList:
|
||||
return ProcXGetDeviceDontPropagateList(client);
|
||||
case X_GetDeviceMotionEvents:
|
||||
return SProcXGetDeviceMotionEvents(client);
|
||||
return ProcXGetDeviceMotionEvents(client);
|
||||
case X_ChangeKeyboardDevice:
|
||||
return ProcXChangeKeyboardDevice(client);
|
||||
case X_ChangePointerDevice:
|
||||
|
||||
@ -63,22 +63,6 @@ SOFTWARE.
|
||||
|
||||
#include "inputstr.h" /* DeviceIntPtr */
|
||||
|
||||
/***********************************************************************
|
||||
*
|
||||
* Swap the request if server and client have different byte ordering.
|
||||
*
|
||||
*/
|
||||
|
||||
int _X_COLD
|
||||
SProcXGetDeviceMotionEvents(ClientPtr client)
|
||||
{
|
||||
REQUEST(xGetDeviceMotionEventsReq);
|
||||
REQUEST_SIZE_MATCH(xGetDeviceMotionEventsReq);
|
||||
swapl(&stuff->start);
|
||||
swapl(&stuff->stop);
|
||||
return (ProcXGetDeviceMotionEvents(client));
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
*
|
||||
* Get the motion history for an extension pointer devices.
|
||||
@ -91,6 +75,11 @@ ProcXGetDeviceMotionEvents(ClientPtr client)
|
||||
REQUEST(xGetDeviceMotionEventsReq);
|
||||
REQUEST_SIZE_MATCH(xGetDeviceMotionEventsReq);
|
||||
|
||||
if (client->swapped) {
|
||||
swapl(&stuff->start);
|
||||
swapl(&stuff->stop);
|
||||
}
|
||||
|
||||
DeviceIntPtr dev;
|
||||
int rc = dixLookupDevice(&dev, stuff->deviceid, client, DixReadAccess);
|
||||
if (rc != Success)
|
||||
|
||||
@ -69,7 +69,6 @@ int ProcXUngrabDeviceButton(ClientPtr client);
|
||||
int ProcXUngrabDevice(ClientPtr client);
|
||||
int ProcXUngrabDeviceKey(ClientPtr client);
|
||||
|
||||
int SProcXGetDeviceMotionEvents(ClientPtr client);
|
||||
int SProcXIAllowEvents(ClientPtr client);
|
||||
int SProcXIBarrierReleasePointer(ClientPtr client);
|
||||
int SProcXIGetClientPointer(ClientPtr client);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user