Bugzilla – Bug 154357
can't switch left and right mouse buttons
Last modified: 2006-03-22 15:15:13 UTC
If I click with the right mouse button into the timezone dialog, I get a popup that says 'You clicked the right mouse button ... (blah blah)'. It offers to switch left and right buttons - but it does not work.
Stanislav: If this is nothing for you, please assign it back to us.
Hm - it did work in previous versions. The y2log should have a line like this: Switching mouse buttons: xmodmap -e "pointer = 1 2 3" or Switching mouse buttons: xmodmap -e "pointer = 3 2 1" This is the command that is executed. Do you have a line like this in the y2logs? And is "xmodmap" available in the inst-sys at all?
no no
No log line like this -> you must have hit "cancel" in that dialog. No xmodmap in the inst-sys -> even if invoked, this cannot work. :-( So at least we need xmodmap in the inst-sys. This only adds another 25 k to it and no new libraries AFAICS. So please add it and then let's test this again.
> No log line like this -> you must have hit "cancel" in that dialog. Actually it was the 'hit huha's head hard' button. Seems not to work either. Ok, I've added xmodmap. And it sure does still not work because the command in comment 2 is wrong (try it on your local machine - don't worry it will do no harm as it doesn't work). My bet is that it is impossible to put together the real command in YCP.
It would be nice to have xmodmap changed to work without having to specify all buttons explicitly. E.g. it could change just the button assignments that are given. (Comment 2 did not work on my machine because it wanted the complete mapping of 11 buttons.)
Any volunteers to improve xmodmap?
Example with my 9 button (really?) mouse: # xmodmap -e "pointer = 1 2 3" xmodmap: commandline:1: bad number of buttons, must have 9 instead of 3 xmodmap: 1 error encountered, aborting. # xmodmap -e "pointer = 1 2 3 4 5 6 7 8 9" #
Created attachment 71396 [details] Patch # ./xmodmap -e "pointer = 3 2 1" Warning: Wrong number of buttons given (should be 9 instead of 3). Warning: Only setting the first 3 buttons. Warning: Using the old values for the remaining buttons. # echo $? 0
Submitted for STABLE. Fixed for Beta8.
Should be patched upstream. Reopening and assigning to myself.
Thanks for taking care of this one.
Created attachment 74467 [details] Updated patch Simpler warning message. This is going upstream.
I'll use this patch as well for our xorg-x11 package.
Submitted upstream.