Re-mapping the middlemouse paste functionality

2010-01-29 Thread Adrian Sud
Hi,

I am trying to reconfigure the middle mouse button paste buffer command to
another one of the 7 available buttons on my mouse, but leave the 2nd mouse
button reporting itself as a 2nd mouse button.

Any googling and browsing of FAQs finds ways to disable the 2nd mouse button
entirely, or map the 2nd mouse button to another button (causing all other
functions tied to the 2nd mouse button to move to that other button as
well). Am I to assume that this is not a configurable thing?

This may be the wrong place to ask; I am assuming X controls this
middle-click paste buffer access because X is historically the controller of
pointer devices.

If it is not configurable yet, but is part of X11, let me know and I will
try to find where in the source the paste-buffer access is, and see if I can
modify it to add configurability.

If I should be asking on xorg-devel, let me know :)

Thanks,
-Adrian

___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


RE: Re-mapping the middlemouse paste functionality

2010-01-29 Thread Adrian Sud
Hi Ross,

 xmodmap should let you reassign the button codes (so the middle button
 is 7 and some side button is 2), but I suspect that this has changed now
 that XKB is ruling.  Worth a go though.
 
 Ross

Or I could use xinput to remap buttons--the problem is that I actually want
the middle mouse button to still report that it is button 2. This is because
I want programs that use middle-click for certain features (e.g. firefox,
some games, etc) to still have their features use the button they default
to. I also still want pasting from the paste buffer--I just want that
feature bound to button 7, not button 2.

As I said, I'm not sure this is currently possible, but I'd like to see  if
I can work out a way to do it.

Thanks for your response!
-Adrian

___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg


RE: Re-mapping the middlemouse paste functionality

2010-01-29 Thread Adrian Sud
 Certainly GTK+ hard-codes button 2 as selection paste, so I expect
 you'll have trouble.

Aha, that's what I needed to know. Makes a lot more sense than X doing it;
my thought process was only based on KDE and Gnome both using the same
button for it. I'll go look at the GTK then.
 
Thank you again,
-Adrian

___
xorg mailing list
xorg@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/xorg