I was messing with some Motif (actually Lesstif) stuff on my Linux
box. I noticed that my mouseclicks didn't seem to register until the
mouse button came back up from the click, which annoyed me.
I figured it was because I had a special option, "emulate 3 button,"
(I have a two button microsoft moose) set in the pointer section of my
X server config file. And, sure enough, when I removed the setting,
rebooted the server, and tested it again with xev, mouse clicks started
behaving like they should have.
Now there was only one problem. Before, I could click down on the left
button and then the right button (or the right button and then the
left button) to simulate a middle-button click. Now, although pushing the
mouse button down resulted in correct behavior, I only had a right and
left button. No middle button anymore. But you NEED that middle button;
you can't paste text without it!
ObHack:
xmodmap -e "pointer = 1 3 2"
That swaps the middle and right buttons. Now my mouse's left button was
still button 1, for highlighting, but the right button was suddenly button
2, instead of 3. So I can paste with the right button.
It's worked out pretty well so far. The only problem NOW is that when I
use XV, I have no way of getting the controls window! You have to click
in the image window with button 3 to get the controls window. But I
don't have a button 3 anymore! And I can't find a key that will bring
the controls window up, either. So if I want to use XV, I have to
xmodmap -e "pointer = 1 2 3" for a second, click to get the control window,
and then change it back.
...but there's got to be a better way. What would be really nice would
be a way to modify pointer buttons like you can modify keysyms. Something
like "Shift + button 2 = button 3". Alas, it doesn't seem to work that way.
I'll probably have to mod the X server if I want it to work...
-Ben
--
"BGC: Because some of us believe women over 14 are still *."
=--------- http://www.veryComputer.com/~cantrick/home.html -------------=
*Ben Cantrick, diehard BGC otaku and Priss fan. ---> THE BGC DUBS SUCK! <---*
*Mac? Ha. "When I want to spend 50% of my time fighting an OS, I'll use VMS."*