Currently I have several buttons which I can enable with a single click. I find that when I’m moving the mouse, sometimes they become enabled accidently. I would like to enable them with a double click. Is there any way to do this.
Same principle applies – for whatever action your FvwmButtons are set to invoke, either put them in a function if they’re not already prefixed with +D (as previous post), or just change the modifier to +D.
Example:
*A: (1x1, Title "Hello", Action (Mouse 1) Function B)
DestroyFunc B
AddToFunc B
+ D Command1
+ D Command2
+ C Command3
Module FvwmButtons A
More fundamentally than that, you’re also not reading or understanding what I’ve been telling you. To convert your made-up and broken syntax into something which works, see the following:
Note also that using an alias of just FvwmButtons is a bad idea, since it creates problems if you want more than that one instance.
This is completely tangential to your original question, but “A” means any modifier. It’s in the manpage under the description for the Mouse command, funnily enough.
Thanks, thomasadm, I used your suggestions and used a function and it worked. Probably should have used functions when I started but I was in a hurry to get it working and stole the lines from some sample config file somewhere. Also, I wanted to keep my config file as short as possible.
I searched through the man pages (fvwm2.1) for mouse commands but didn’t find it, so that’s the reason I asked. No biggie, since all I want to do is get it running the way I want.