summaryrefslogtreecommitdiff
path: root/dix/grabs.c
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2007-10-18 12:31:14 -0400
committerEamon Walsh <ewalsh@moss-charon.epoch.ncsc.mil>2007-10-18 12:31:14 -0400
commit06eb830169afd0631a31e8846c7d2533c49ea378 (patch)
treeb755e41789fde57199809ecde18598afbb28bedd /dix/grabs.c
parent6107a245035366fe762756b6aa05ac0e3a5482bb (diff)
xace: Fix bug in AddPassiveGrabToList(), was using wrong GrabPtr.
Diffstat (limited to 'dix/grabs.c')
-rw-r--r--dix/grabs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dix/grabs.c b/dix/grabs.c
index 229329699..a42a46f10 100644
--- a/dix/grabs.c
+++ b/dix/grabs.c
@@ -325,9 +325,9 @@ AddPassiveGrabToList(ClientPtr client, GrabPtr pGrab)
}
}
- if (grab->keyboardMode == GrabModeSync || grab->pointerMode == GrabModeSync)
+ if (pGrab->keyboardMode == GrabModeSync||pGrab->pointerMode == GrabModeSync)
access_mode |= DixFreezeAccess;
- rc = XaceHook(XACE_DEVICE_ACCESS, client, grab->device, access_mode);
+ rc = XaceHook(XACE_DEVICE_ACCESS, client, pGrab->device, access_mode);
if (rc != Success)
return rc;