dix: Add client parameter to AddPassiveGrabsToList().
This commit is contained in:
parent
31110d6837
commit
6107a24503
|
@ -566,7 +566,7 @@ GrabButton(ClientPtr client, DeviceIntPtr dev, BYTE this_device_mode,
|
|||
DeviceButtonPress, button, confineTo, cursor);
|
||||
if (!grab)
|
||||
return BadAlloc;
|
||||
return AddPassiveGrabToList(grab);
|
||||
return AddPassiveGrabToList(client, grab);
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -621,7 +621,7 @@ GrabKey(ClientPtr client, DeviceIntPtr dev, BYTE this_device_mode,
|
|||
NullWindow, NullCursor);
|
||||
if (!grab)
|
||||
return BadAlloc;
|
||||
return AddPassiveGrabToList(grab);
|
||||
return AddPassiveGrabToList(client, grab);
|
||||
}
|
||||
|
||||
int
|
||||
|
|
|
@ -4727,7 +4727,7 @@ ProcGrabKey(ClientPtr client)
|
|||
NullWindow, NullCursor);
|
||||
if (!grab)
|
||||
return BadAlloc;
|
||||
return AddPassiveGrabToList(grab);
|
||||
return AddPassiveGrabToList(client, grab);
|
||||
}
|
||||
|
||||
|
||||
|
@ -4815,7 +4815,7 @@ ProcGrabButton(ClientPtr client)
|
|||
stuff->button, confineTo, cursor);
|
||||
if (!grab)
|
||||
return BadAlloc;
|
||||
return AddPassiveGrabToList(grab);
|
||||
return AddPassiveGrabToList(client, grab);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -50,6 +50,7 @@ extern Bool GrabMatchesSecond(
|
|||
GrabPtr /* pSecondGrab */);
|
||||
|
||||
extern int AddPassiveGrabToList(
|
||||
ClientPtr /* client */,
|
||||
GrabPtr /* pGrab */);
|
||||
|
||||
extern Bool DeletePassiveGrabFromList(
|
||||
|
|
Loading…
Reference in New Issue
Block a user