Disable Middle mouse button?

Tony Nelson tonynelson at georgeanelson.com
Tue Jun 7 19:15:10 UTC 2005


At 3:28 PM +1000 6/7/05, Steffen Kluge wrote:

>On Tue, 2005-06-07 at 01:00 -0400, Tony Nelson wrote:
>> I've since put everything back and I'm back where I started.
>
>If you want to retain scrolling, but disable middle-button clicking, you
>could just map button 2 (middle) out of the way.
>
>If you use xmodmap -pp without any re-mappings in place you probably get
>something like:
>
>        There are 7 pointer buttons defined.
>
>            Physical        Button
>             Button          Code
>                1              1
>                2              2
>                3              3
>                4              4
>                5              5
>                6              6
>                7              7
>
>
>Swapping button 2 with button 7 (which is unused) should disable
>middle-click: xmodmap -e "pointer = 1 7 3 4 5 6 2" while retaining wheel
>functionality. If you're happy with this you can put it into the X init
>file of your choice.
>
>Cheers
>Steffen.

Aha!  Thank you, that seems to do the trick.  apropos mouse didn't find
xmodmap for me because xmodmap talks about "pointers".

Actually, xmodmap says I have only 5 pointer buttons, but I mapped 2 to 7
anyway. :)  I chose to put it into /exc/X11/Xmodmap (seems logical) for
everyone (well, just me, really).


At 3:35 PM +1000 6/7/05, Steffen Kluge wrote:

>>         There are 7 pointer buttons defined.
>
>Sorry for replying to myself, I forgot to add: in case you only see 5
>buttons here you need to add an extra (unused) button by increasing the
>"Buttons" option in the "InputDevice" section in xorg.conf.

I don't seem to have to change that.
____________________________________________________________________
TonyN.:'                       <mailto:tonynelson at georgeanelson.com>
      '                              <http://www.georgeanelson.com/>




More information about the fedora-list mailing list