I'd like to use mouse chording [1], when defining my mouse bindings. As I cannot (and also I don't want to) prevent mouse, I use mouse with as much additional buttons as possible to avoid mouse-keyboard switching. I'd like to use the additional buttons as mouse-modifiers.
Ideal state is when all keys and buttons are treated the same way (imagine doublehit "Enter" :-) or modifier "Backspace"). But it will suffice to create msubmap which accepts events described by button specifications (as in mpress,) and allow mouse bindings inside (both) submaps. Msubmap may be canceled by button release. I played with xev, Xwindows reports state of only first five buttons in modifiers bitmask. (There is the braindead thing mapping wheels to buttons, and more brainded thing that button 4 & 5 are the vertical wheel, so I cannot state of my thumb buttons from current X event.) [1] http://en.wikipedia.org/wiki/Mouse_chording -- Tomas Ebenlendr http://drak.ucw.cz/~ebik
