xace: Correct some access modes.
This commit is contained in:
parent
53f346b158
commit
1005b29cc6
|
@ -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;
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user