summaryrefslogtreecommitdiff
path: root/dix/grabs.c
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2007-10-18 12:24:55 -0400
committerEamon Walsh <ewalsh@moss-charon.epoch.ncsc.mil>2007-10-18 12:24:55 -0400
commit6107a245035366fe762756b6aa05ac0e3a5482bb (patch)
tree4eda81e96223efba3c534e0a6a419d715e9934b3 /dix/grabs.c
parent31110d6837ee52fd654729d9e5c4b0c5395abab0 (diff)
dix: Add client parameter to AddPassiveGrabsToList().
Diffstat (limited to 'dix/grabs.c')
-rw-r--r--dix/grabs.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/dix/grabs.c b/dix/grabs.c
index b8d0df88d..229329699 100644
--- a/dix/grabs.c
+++ b/dix/grabs.c
@@ -307,7 +307,7 @@ GrabsAreIdentical(GrabPtr pFirstGrab, GrabPtr pSecondGrab)
* @return Success or X error code on failure.
*/
int
-AddPassiveGrabToList(GrabPtr pGrab)
+AddPassiveGrabToList(ClientPtr client, GrabPtr pGrab)
{
GrabPtr grab;
Mask access_mode = DixGrabAccess;
@@ -327,8 +327,7 @@ AddPassiveGrabToList(GrabPtr pGrab)
if (grab->keyboardMode == GrabModeSync || grab->pointerMode == GrabModeSync)
access_mode |= DixFreezeAccess;
- rc = XaceHook(XACE_DEVICE_ACCESS, clients[CLIENT_ID(grab->resource)],
- grab->device, access_mode);
+ rc = XaceHook(XACE_DEVICE_ACCESS, client, grab->device, access_mode);
if (rc != Success)
return rc;