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)