mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
Xi: inline SProcXIWarpPointer()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
48123076f9
commit
e125d9badb
@@ -434,7 +434,7 @@ SProcIDispatch(ClientPtr client)
|
||||
case X_XIQueryPointer:
|
||||
return SProcXIQueryPointer(client);
|
||||
case X_XIWarpPointer:
|
||||
return SProcXIWarpPointer(client);
|
||||
return ProcXIWarpPointer(client);
|
||||
case X_XIChangeCursor:
|
||||
return ProcXIChangeCursor(client);
|
||||
case X_XIChangeHierarchy:
|
||||
|
||||
@@ -72,6 +72,5 @@ int ProcXUngrabDeviceKey(ClientPtr client);
|
||||
int SProcXIGetSelectedEvents(ClientPtr client);
|
||||
int SProcXIQueryPointer(ClientPtr client);
|
||||
int SProcXISelectEvents(ClientPtr client);
|
||||
int SProcXIWarpPointer(ClientPtr client);
|
||||
|
||||
#endif /* _XSERVER_XI_HANDLERS_H */
|
||||
|
||||
@@ -56,27 +56,24 @@
|
||||
*
|
||||
*/
|
||||
|
||||
int _X_COLD
|
||||
SProcXIWarpPointer(ClientPtr client)
|
||||
int
|
||||
ProcXIWarpPointer(ClientPtr client)
|
||||
{
|
||||
REQUEST(xXIWarpPointerReq);
|
||||
REQUEST_SIZE_MATCH(xXIWarpPointerReq);
|
||||
|
||||
swapl(&stuff->src_win);
|
||||
swapl(&stuff->dst_win);
|
||||
swapl(&stuff->src_x);
|
||||
swapl(&stuff->src_y);
|
||||
swaps(&stuff->src_width);
|
||||
swaps(&stuff->src_height);
|
||||
swapl(&stuff->dst_x);
|
||||
swapl(&stuff->dst_y);
|
||||
swaps(&stuff->deviceid);
|
||||
return (ProcXIWarpPointer(client));
|
||||
}
|
||||
if (client->swapped) {
|
||||
swapl(&stuff->src_win);
|
||||
swapl(&stuff->dst_win);
|
||||
swapl(&stuff->src_x);
|
||||
swapl(&stuff->src_y);
|
||||
swaps(&stuff->src_width);
|
||||
swaps(&stuff->src_height);
|
||||
swapl(&stuff->dst_x);
|
||||
swapl(&stuff->dst_y);
|
||||
swaps(&stuff->deviceid);
|
||||
}
|
||||
|
||||
int
|
||||
ProcXIWarpPointer(ClientPtr client)
|
||||
{
|
||||
int rc;
|
||||
int x, y;
|
||||
WindowPtr dest = NULL;
|
||||
@@ -86,9 +83,6 @@ ProcXIWarpPointer(ClientPtr client)
|
||||
int src_x, src_y;
|
||||
int dst_x, dst_y;
|
||||
|
||||
REQUEST(xXIWarpPointerReq);
|
||||
REQUEST_SIZE_MATCH(xXIWarpPointerReq);
|
||||
|
||||
/* FIXME: panoramix stuff is missing, look at ProcWarpPointer */
|
||||
|
||||
rc = dixLookupDevice(&pDev, stuff->deviceid, client, DixWriteAccess);
|
||||
|
||||
Reference in New Issue
Block a user