mirror of
https://github.com/X11Libre/xserver.git
synced 2026-01-26 05:57:53 +00:00
Xi: inline SProcXUngrabDevice()
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
3b4ba245b7
commit
da1c2a4605
@ -378,7 +378,7 @@ SProcIDispatch(ClientPtr client)
|
||||
case X_GrabDevice:
|
||||
return SProcXGrabDevice(client);
|
||||
case X_UngrabDevice:
|
||||
return SProcXUngrabDevice(client);
|
||||
return ProcXUngrabDevice(client);
|
||||
case X_GrabDeviceKey:
|
||||
return SProcXGrabDeviceKey(client);
|
||||
case X_UngrabDeviceKey:
|
||||
|
||||
@ -97,7 +97,6 @@ int SProcXSelectExtensionEvent(ClientPtr client);
|
||||
int SProcXSendExtensionEvent(ClientPtr client);
|
||||
int SProcXSetDeviceFocus(ClientPtr client);
|
||||
int SProcXUngrabDeviceButton(ClientPtr client);
|
||||
int SProcXUngrabDevice(ClientPtr client);
|
||||
int SProcXUngrabDeviceKey(ClientPtr client);
|
||||
|
||||
#endif /* _XSERVER_XI_HANDLERS_H */
|
||||
|
||||
24
Xi/ungrdev.c
24
Xi/ungrdev.c
@ -60,21 +60,6 @@ SOFTWARE.
|
||||
#include "inputstr.h" /* DeviceIntPtr */
|
||||
#include "windowstr.h" /* window structure */
|
||||
|
||||
/***********************************************************************
|
||||
*
|
||||
* Handle requests from a client with a different byte order.
|
||||
*
|
||||
*/
|
||||
|
||||
int _X_COLD
|
||||
SProcXUngrabDevice(ClientPtr client)
|
||||
{
|
||||
REQUEST(xUngrabDeviceReq);
|
||||
REQUEST_SIZE_MATCH(xUngrabDeviceReq);
|
||||
swapl(&stuff->time);
|
||||
return (ProcXUngrabDevice(client));
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
*
|
||||
* Release a grab of an extension device.
|
||||
@ -84,14 +69,17 @@ SProcXUngrabDevice(ClientPtr client)
|
||||
int
|
||||
ProcXUngrabDevice(ClientPtr client)
|
||||
{
|
||||
REQUEST(xUngrabDeviceReq);
|
||||
REQUEST_SIZE_MATCH(xUngrabDeviceReq);
|
||||
|
||||
if (client->swapped)
|
||||
swapl(&stuff->time);
|
||||
|
||||
DeviceIntPtr dev;
|
||||
GrabPtr grab;
|
||||
TimeStamp time;
|
||||
int rc;
|
||||
|
||||
REQUEST(xUngrabDeviceReq);
|
||||
REQUEST_SIZE_MATCH(xUngrabDeviceReq);
|
||||
|
||||
rc = dixLookupDevice(&dev, stuff->deviceid, client, DixGetAttrAccess);
|
||||
if (rc != Success)
|
||||
return rc;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user