summaryrefslogtreecommitdiff
path: root/dix
diff options
context:
space:
mode:
authorEamon Walsh <ewalsh@tycho.nsa.gov>2008-10-30 16:05:40 -0400
committerEamon Walsh <ewalsh@tycho.nsa.gov>2008-10-30 18:29:51 -0400
commit2809a56b4bc7f09f132c70dc39c6695495351c4d (patch)
tree5951034fad4b68588f97f5ffa34def8058b3fcab /dix
parent0f2fd0577fe2740a32d3a2749e2c3582f891417c (diff)
xace: Fix an incorrect call to the RECEIVE_ACCESS hook.
Diffstat (limited to 'dix')
-rw-r--r--dix/events.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/dix/events.c b/dix/events.c
index 658dbc3a7..952a801cd 100644
--- a/dix/events.c
+++ b/dix/events.c
@@ -3710,7 +3710,7 @@ DeliverGrabbedEvent(xEvent *xE, DeviceIntPtr thisDev,
if (XaceHook(XACE_SEND_ACCESS, 0, thisDev,
grab->window, &core, 1) ||
XaceHook(XACE_RECEIVE_ACCESS, rClient(grab),
- grab->window, &count, 1))
+ grab->window, &core, 1))
deliveries = 1; /* don't send, but pretend we did */
else if (!IsInterferingGrab(rClient(grab), thisDev,
&core))
@@ -3736,8 +3736,7 @@ DeliverGrabbedEvent(xEvent *xE, DeviceIntPtr thisDev,
if (XaceHook(XACE_SEND_ACCESS, 0, thisDev,
grab->window, xE, count) ||
XaceHook(XACE_RECEIVE_ACCESS, rClient(grab),
- grab->window,
- xE, count))
+ grab->window, xE, count))
deliveries = 1; /* don't send, but pretend we did */
else
{