[PATCH] Xi: allow passive keygrabs on the XIAll(Master)Devices fake devices
Bastien Nocera
hadess at hadess.net
Wed Nov 2 12:25:50 PDT 2011
On Wed, 2011-11-02 at 08:58 +1000, Peter Hutterer wrote:
> ping?
>
> this issue affects all XI2-capable servers.
Works for me, but is the same thing needed for the XIUngrabKeycode()
path as well? I get errors when ungrabbing keys with the same parameters
as they have been grabbed with.
> On Thu, Oct 27, 2011 at 11:51:25AM +1000, Peter Hutterer wrote:
> > They don't have a KeyClassRec, but we must still allow passive grabs on
> > them.
> >
> > Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
> > ---
> > Xi/exevents.c | 2 +-
> > 1 files changed, 1 insertions(+), 1 deletions(-)
> >
> > diff --git a/Xi/exevents.c b/Xi/exevents.c
> > index 053c76f..edf2c39 100644
> > --- a/Xi/exevents.c
> > +++ b/Xi/exevents.c
> > @@ -1495,7 +1495,7 @@ GrabKey(ClientPtr client, DeviceIntPtr dev, DeviceIntPtr modifier_device,
> > rc = CheckGrabValues(client, param);
> > if (rc != Success)
> > return rc;
> > - if (k == NULL)
> > + if ((dev->id != XIAllDevices && dev->id != XIAllMasterDevices) && k == NULL)
> > return BadMatch;
> > if (grabtype == GRABTYPE_XI)
> > {
> > --
> > 1.7.7
>
More information about the xorg-devel
mailing list