FVWM: Setting mouse bindings in functions

From: Marcus Lundblad <ml_at_update.uu.se>
Date: Tue, 21 May 2002 09:53:45 +0200 (CEST)

I have 2 functions which I would like to change the binding of mouse
button 2 on the root window like this:

Mouse 2 R A HidePager

AddToFunc HidePager "I" All ("FvwmPager") Stick off
+ "I" All ("FvwmPager") MoveToDesk 123
+ "I" Mouse 2 R A ShowPager

AddToFunc ShowPager "I" All ("FvwmPager") Stick on
+ "I" Mouse 2 R A HidePager


So that pressing button 2 will toggle.
But this will not work, it seeems the last line tries to call the other
function, because the cursor changes to an hour-glass for about 1 second
(as if there's an infinity recursion that is interrupted).

Is it not possible to use the Mouse command in functions like this?
I didn't find anything about this in the man-page.

//Marcus

--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Tue May 21 2002 - 02:54:27 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:53 BST