Mouse Buttons

The first argument to “Mouse” is the button. But how man default buttons are there? In this example mouse button 5 is used:

Mouse 5 T A FvwmWindowShade False

I read that mouse button 5 is when you roll the mousewheel down twice. Is there a list somewhere (could not find one in the man pages) of all the predefined mouse integers?

What does ie “0” stand for??

Mouse 0 4 A Iconify

The number of buttons is defined by the number your mouse has. Actually, for the scroll wheel, buttons 4 and 5 are defined for it. For when moves the wheel up and down.

“Mouse 0” is special to Fvwm – meaning any mouse button.

– Thomas Adam

Ok so there is no difference between 4 and 5?

I guees the full list is then: 0,1,2,3,4,5 right?

Where in the “man” did you find that information? I have looked through it many times now but could not see find anything on these standards anywhere.

BTW: I have the follwing mouse bindings in my .fvwm2rc file:

for the root window:

Mouse 1 R A Menu MenuFvwmRoot Nop
Mouse 2 R A Menu MenuFvwmWindowOps Nop
Mouse 3 R A WindowList

for the title bar buttons:

Mouse 0 1 A Menu MenuFvwmWindowOps2 Close
Mouse 0 2 A FuncFvwmMaximize
Mouse 0 4 A Iconify

for other parts of the window/borders/icons:

Mouse 1 F A FuncFvwmResizeOrRaise
Mouse 1 TS A FuncFvwmMoveOrRaise
Mouse 1 I A FuncFvwmMoveOrIconify
Mouse 2 I A Iconify
Mouse 2 FST A Menu MenuFvwmWindowOps2 Nop
Mouse 3 TSIF A RaiseLower

But when I use the mouse wheel (up or down, its the same) on the leftmost button in a window it closes…But I have not assigned 4 or 5 to anything.

There is a difference,. IIRC, button 4 is the upwards movement of the wheel, while button 5 is the downwards movement of it.

I didn’t, I recalled it from memory. I’m sure it is in the manpage, or the FAQ.

Yes, that’s normal behaviour.

– Thomas Adam