[PATCH] xkb: ignore floating slave devices when updating from master (#81885)
Daniel Stone
daniel at fooishbar.org
Tue Aug 12 08:09:30 PDT 2014
R-b.
-d
On Monday, August 11, 2014, Peter Hutterer <peter.hutterer at who-t.net> wrote:
> ping?
>
> On Mon, Aug 04, 2014 at 10:47:03AM +1000, Peter Hutterer wrote:
> > Introduced in 45fb3a934dc0db51584aba37c2f9d73deff9191d. When a device is
> > enabled, the master's locked state is pushed to the slave. If the device
> is
> > floating, no master exists and we triggered a NULL-pointer dereference
> > in XkbPushLockedStateToSlaves.
> >
> > X.Org Bug 81885 <http://bugs.freedesktop.org/show_bug.cgi?id=81885>
> >
> > Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net <javascript:;>>
> > ---
> > dix/devices.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/dix/devices.c b/dix/devices.c
> > index 7f079ff..9e1c546 100644
> > --- a/dix/devices.c
> > +++ b/dix/devices.c
> > @@ -416,7 +416,7 @@ EnableDevice(DeviceIntPtr dev, BOOL sendevent)
> > XISendDeviceHierarchyEvent(flags);
> > }
> >
> > - if (!IsMaster(dev))
> > + if (!IsMaster(dev) && !IsFloating(dev))
> > XkbPushLockedStateToSlaves(GetMaster(dev, MASTER_KEYBOARD), 0,
> 0);
> > RecalculateMasterButtons(dev);
> >
> > --
> > 1.9.3
> _______________________________________________
> xorg-devel at lists.x.org <javascript:;>: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: http://lists.x.org/mailman/listinfo/xorg-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.x.org/archives/xorg-devel/attachments/20140812/a8f353a6/attachment.html>
More information about the xorg-devel
mailing list