Mouse works with X but breaks as a left-handed...

2004-08-18 Thread Carlos Duque
Hi,

I'm a newbie with Debian, but not so much with Linux.. My problem is that my 
wheelmouse works fine with X but it goes crazy when I change it to left-handed (kde or 
gnome).  The middle button stops working and the other two show me the menu.

I checked the XConfig86-4 but seems fine, I even tried one generated by Knoppix which 
worked with knoppix, but it doesn't seem to work with Debian...

I would appreciate any help...

Please send any comments with copy to:

alcros (at) myrealbox (dot) com

SALUDOS DESDE HONDURAS !!!



Re: Re: Mouse works with X but breaks as a left-handed...

2004-08-20 Thread Carlos Duque
Hi Everyone,
I did some tests using xmodmap and xev to see what could be wrong and 
this is what I've found:
Running xmodmap when right handed:
$xmodmap -pp
There are 5 pointer buttons defined.
Physical   Button
 Button Code
1 1
2 2
3 3
4 4
5 5

/* Switching to left-handed */
$xmodmap -e "pointer = 3 2 1 4 5"
There are 5 pointer buttons defined.
Physical   Button
 Button Code
1 3
2 2
3 1
4 4
5 5
/* Funny thing is... after switching the mouse buttons and running xterm 
like:*/

$xterm -e xev
to see the mouse events, I found that Clicking with the button 1, 
triggers two events:
1. ButtonPress event, , ..., , button 1
2. ButtonRelease event, , .., ..., button 3

and something similar happens with button 3:
1. ButtonPress event, , ..., , button 3
2. ButtonRelease event, , .., ..., button 1
Please note that the ButtonPress event is on some button and the 
ButtonRelease event has the value of another button.
My guess is that, ButtonPress and ButtonRelease events should both 
return the event for the same button as it happens with
button 2 or any other button when right handed, pretty obvious I guess 
but has anybody an idea of how to fix this


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]