The mousedrv(4x) man page says

  Option "ButtonMapping" "N1 N2 [...]"
      Specifies how physical mouse buttons are mapped to logical
      buttons.  Physical button 1 is mapped to logical button N1,
      physical button 2 to N2, and so forth.  This enables the use of
      physical buttons that are obscured by ZAxisMapping.
                 Default: "1 2 3 8 9 10 ...".

The code in mouse.c for that initialization is identical in
FreeBSD and OpenBSD. Under FreeBSD "xinput get-button-map" shows
1 2 3 8 9 10

Under OpenBSD somewhere between the mousedrv code and the environment when X is started leaves the mapping "1 2 3 4 5 6..."
This is on a 6.0 freshly upgraded to 6.1 with an empty
xorg.conf.d, no .xinitrc

This behavior, of course, perplexes the user.
Trying to xmodmap physical button 4 (supposedly now button 8)
to a middle button fails. xmodmap physical 4 to middle button
does work.

I -think- the FreeBSD behavior is correct, since the
usage of button events 4-7 is very murky given the universe
of wildly different pointing devices.

Is there a configuration file somewhere I overlooked?

thanks
Geoff Steckel

Reply via email to