SetPointerMapping protocol braindeadedness

Daniel Stone daniel at
Mon Jul 3 04:55:16 PDT 2006

Hi all,
The protocol spec for SetPointerMapping says:
'A zero element disables a button.  Elements are not restricted in value
by the number of physical buttons, but no two elements can have the same
nonzero value (or a Value error results).'

Right now, we test for button values being n > 1 and n < 255.  I propose
we trade one protocol violation for another: allow n == 0 to disable
buttons altogether, but at the same time, also allow duplicate button
mappings (e.g. 1 2 3 4 5 6 7 3, being valid, if you want button eight to
behave like button three).

Does anyone know why this restriction was enforced in the protocol,
and/or have any objections to this change?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
URL: <>

More information about the xorg mailing list