There's an off-by-one error in EvdevAddButtonClass; InitButtonClassDeviceStruct
looks at elements 1..n of the array passed to it, not 0..n-1. The result is
that button 32 is mapped to a random number. Harmless enough, except this
causes gnome-settings-daeamon to crash if the random value is in the range 1..31
(because it tries to call XSetPointerMapping with what it gets from
XGetPointerMapping). Fix follows.
Created attachment 4372 [details] [review]
Patch to fix off-by-one error in EvdevAddButtonClass
This bug should be corrected in the new evdev driver in the modular CVS tree.
Reassign to the new evdev maintainer.
Created attachment 116618 [details]