xace: modifications to ChangeWindowAttributes special case: separate

Receive and SetAttr.  Refer to 963e69b8ef
This commit is contained in:
Eamon Walsh 2007-09-20 09:17:09 -04:00 committed by Eamon Walsh
parent 661b1328cf
commit 82f7195a62

View File

@ -571,11 +571,11 @@ ProcChangeWindowAttributes(ClientPtr client)
WindowPtr pWin;
REQUEST(xChangeWindowAttributesReq);
int result, len, rc;
Mask access_mode = DixSetAttrAccess;
Mask access_mode = 0;
REQUEST_AT_LEAST_SIZE(xChangeWindowAttributesReq);
if (stuff->valueMask == CWEventMask)
access_mode = DixReceiveAccess;
access_mode |= (stuff->valueMask & CWEventMask) ? DixReceiveAccess : 0;
access_mode |= (stuff->valueMask & ~CWEventMask) ? DixSetAttrAccess : 0;
rc = dixLookupWindow(&pWin, stuff->window, client, access_mode);
if (rc != Success)
return rc;