From 1005b29cc6939851b40397cc9cd0de9476ad3046 Mon Sep 17 00:00:00 2001 From: Eamon Walsh Date: Thu, 30 Aug 2007 14:48:24 -0400 Subject: [PATCH] xace: Correct some access modes. --- dix/window.c | 2 +- xfixes/cursor.c | 2 +- xfixes/select.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dix/window.c b/dix/window.c index b6bbdd4cb..70ce2ad9e 100644 --- a/dix/window.c +++ b/dix/window.c @@ -1396,7 +1396,7 @@ ChangeWindowAttributes(WindowPtr pWin, Mask vmask, XID *vlist, ClientPtr client) else { rc = dixLookupResource((pointer *)&pCursor, cursorID, - RT_CURSOR, client, DixReadAccess); + RT_CURSOR, client, DixUseAccess); if (rc != Success) { error = (rc == BadValue) ? BadCursor : rc; diff --git a/xfixes/cursor.c b/xfixes/cursor.c index 91f149e1a..52f483e03 100755 --- a/xfixes/cursor.c +++ b/xfixes/cursor.c @@ -239,7 +239,7 @@ ProcXFixesSelectCursorInput (ClientPtr client) int rc; REQUEST_SIZE_MATCH (xXFixesSelectCursorInputReq); - rc = dixLookupWindow(&pWin, stuff->window, client, DixSetAttrAccess); + rc = dixLookupWindow(&pWin, stuff->window, client, DixGetAttrAccess); if (rc != Success) return rc; if (stuff->eventMask & ~CursorAllEvents) diff --git a/xfixes/select.c b/xfixes/select.c index 9de152f29..2321212ce 100755 --- a/xfixes/select.c +++ b/xfixes/select.c @@ -203,7 +203,7 @@ ProcXFixesSelectSelectionInput (ClientPtr client) int rc; REQUEST_SIZE_MATCH (xXFixesSelectSelectionInputReq); - rc = dixLookupWindow(&pWin, stuff->window, client, DixSetAttrAccess); + rc = dixLookupWindow(&pWin, stuff->window, client, DixGetAttrAccess); if (rc != Success) return rc; if (stuff->eventMask & ~SelectionAllEvents)