summaryrefslogtreecommitdiff
path: root/Xext
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2007-10-02 13:21:53 -0400
committerEamon Walsh <ewalsh@moss-charon.epoch.ncsc.mil>2007-10-02 13:21:53 -0400
commitb77d272d7555c1e0f176ee74b8717030a6d6c7b0 (patch)
treecb2101262407c2340d7adbd52be22bde9f2028c6 /Xext
parent50551ec693f40b91652fe4814e9fe2e1f9ab6517 (diff)
xace: add hooks + new access codes: XTEST extension
Diffstat (limited to 'Xext')
-rw-r--r--Xext/xtest.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/Xext/xtest.c b/Xext/xtest.c
index add996655..79c53b426 100644
--- a/Xext/xtest.c
+++ b/Xext/xtest.c
@@ -141,7 +141,7 @@ ProcXTestCompareCursor(client)
register int n, rc;
REQUEST_SIZE_MATCH(xXTestCompareCursorReq);
- rc = dixLookupWindow(&pWin, stuff->window, client, DixUnknownAccess);
+ rc = dixLookupWindow(&pWin, stuff->window, client, DixGetAttrAccess);
if (rc != Success)
return rc;
if (stuff->cursor == None)
@@ -149,11 +149,12 @@ ProcXTestCompareCursor(client)
else if (stuff->cursor == XTestCurrentCursor)
pCursor = GetSpriteCursor();
else {
- pCursor = (CursorPtr)LookupIDByType(stuff->cursor, RT_CURSOR);
- if (!pCursor)
+ rc = dixLookupResource((pointer *)&pCursor, stuff->cursor, RT_CURSOR,
+ client, DixReadAccess);
+ if (rc != Success)
{
client->errorValue = stuff->cursor;
- return (BadCursor);
+ return (rc == BadValue) ? BadCursor : rc;
}
}
rep.type = X_Reply;
@@ -366,7 +367,7 @@ ProcXTestFakeInput(client)
else
{
rc = dixLookupWindow(&root, ev->u.keyButtonPointer.root, client,
- DixUnknownAccess);
+ DixGetAttrAccess);
if (rc != Success)
return rc;
if (root->parent)