xtest: switch an inputInfo.pointer over to PickPointer.

Couple of whitespace fixes too.
This commit is contained in:
Peter Hutterer 2007-11-21 16:06:44 +10:30
parent e5dd7a9579
commit 33f1568992

View File

@ -140,6 +140,7 @@ ProcXTestCompareCursor(client)
WindowPtr pWin; WindowPtr pWin;
CursorPtr pCursor; CursorPtr pCursor;
int n, rc; int n, rc;
DeviceIntPtr pointer = PickPointer(client);
REQUEST_SIZE_MATCH(xXTestCompareCursorReq); REQUEST_SIZE_MATCH(xXTestCompareCursorReq);
rc = dixLookupWindow(&pWin, stuff->window, client, DixUnknownAccess); rc = dixLookupWindow(&pWin, stuff->window, client, DixUnknownAccess);
@ -148,7 +149,7 @@ ProcXTestCompareCursor(client)
if (stuff->cursor == None) if (stuff->cursor == None)
pCursor = NullCursor; pCursor = NullCursor;
else if (stuff->cursor == XTestCurrentCursor) else if (stuff->cursor == XTestCurrentCursor)
pCursor = GetSpriteCursor(inputInfo.pointer); pCursor = GetSpriteCursor(pointer);
else { else {
pCursor = (CursorPtr)LookupIDByType(stuff->cursor, RT_CURSOR); pCursor = (CursorPtr)LookupIDByType(stuff->cursor, RT_CURSOR);
if (!pCursor) if (!pCursor)