From 2809a56b4bc7f09f132c70dc39c6695495351c4d Mon Sep 17 00:00:00 2001 From: Eamon Walsh Date: Thu, 30 Oct 2008 16:05:40 -0400 Subject: [PATCH] xace: Fix an incorrect call to the RECEIVE_ACCESS hook. --- dix/events.c | 5 ++--- 1 file 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 {