On Tue, Aug 10, 2010 at 01:59:13PM +1000, Peter Hutterer wrote: > GPE modifies the valuators array passed in. Which means any driver using > e.g. xf86PostButtonEventP(..., valuators) twice to emulate a button click > will provide garbage data on the second run. > > Constify the argument, and do the same for keyboard and proximity events. > > Signed-off-by: Peter Hutterer <[email protected]> > --- > Changes to v1: > - valuators array malloc'ed now instead of the previous > "int valuators[num_valuators]"
malloc() in a signal handler ftl - I guess you could just have a static int copied_valuators[MAX_VALUATORS]. Cheers, Daniel
signature.asc
Description: Digital signature
_______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
