xace: Correct some access modes.

This commit is contained in:
Eamon Walsh 2007-08-30 14:48:24 -04:00 committed by Eamon Walsh
parent 53f346b158
commit 1005b29cc6
3 changed files with 3 additions and 3 deletions

View File

@ -1396,7 +1396,7 @@ ChangeWindowAttributes(WindowPtr pWin, Mask vmask, XID *vlist, ClientPtr client)
else else
{ {
rc = dixLookupResource((pointer *)&pCursor, cursorID, rc = dixLookupResource((pointer *)&pCursor, cursorID,
RT_CURSOR, client, DixReadAccess); RT_CURSOR, client, DixUseAccess);
if (rc != Success) if (rc != Success)
{ {
error = (rc == BadValue) ? BadCursor : rc; error = (rc == BadValue) ? BadCursor : rc;

View File

@ -239,7 +239,7 @@ ProcXFixesSelectCursorInput (ClientPtr client)
int rc; int rc;
REQUEST_SIZE_MATCH (xXFixesSelectCursorInputReq); REQUEST_SIZE_MATCH (xXFixesSelectCursorInputReq);
rc = dixLookupWindow(&pWin, stuff->window, client, DixSetAttrAccess); rc = dixLookupWindow(&pWin, stuff->window, client, DixGetAttrAccess);
if (rc != Success) if (rc != Success)
return rc; return rc;
if (stuff->eventMask & ~CursorAllEvents) if (stuff->eventMask & ~CursorAllEvents)

View File

@ -203,7 +203,7 @@ ProcXFixesSelectSelectionInput (ClientPtr client)
int rc; int rc;
REQUEST_SIZE_MATCH (xXFixesSelectSelectionInputReq); REQUEST_SIZE_MATCH (xXFixesSelectSelectionInputReq);
rc = dixLookupWindow(&pWin, stuff->window, client, DixSetAttrAccess); rc = dixLookupWindow(&pWin, stuff->window, client, DixGetAttrAccess);
if (rc != Success) if (rc != Success)
return rc; return rc;
if (stuff->eventMask & ~SelectionAllEvents) if (stuff->eventMask & ~SelectionAllEvents)