xace: add new fields to resource access hook to allow parent resource objects
to be passed in at create time. Also added a missing devPrivates initializer.
This commit is contained in:
@@ -351,7 +351,7 @@ ProcXFixesGetCursorImage (ClientPtr client)
|
||||
if (!pCursor)
|
||||
return BadCursor;
|
||||
rc = XaceHook(XACE_RESOURCE_ACCESS, client, pCursor->id, RT_CURSOR,
|
||||
DixReadAccess, pCursor);
|
||||
pCursor, RT_NONE, NULL, DixReadAccess);
|
||||
if (rc != Success)
|
||||
return rc;
|
||||
GetSpritePosition (&x, &y);
|
||||
@@ -503,7 +503,7 @@ ProcXFixesGetCursorImageAndName (ClientPtr client)
|
||||
if (!pCursor)
|
||||
return BadCursor;
|
||||
rc = XaceHook(XACE_RESOURCE_ACCESS, client, pCursor->id, RT_CURSOR,
|
||||
DixReadAccess|DixGetAttrAccess, pCursor);
|
||||
pCursor, RT_NONE, NULL, DixReadAccess|DixGetAttrAccess);
|
||||
if (rc != Success)
|
||||
return rc;
|
||||
GetSpritePosition (&x, &y);
|
||||
|
||||
Reference in New Issue
Block a user