Re: FVWM: automatic cursor movement with fvwm buttons?

From: Tavis Ormandy <taviso_at_sdf.lonestar.org>
Date: Sat, 5 Mar 2005 18:35:01 +0000

On Sat, Mar 05, 2005 at 11:57:18AM -0500, Jim Cline wrote:
> If it were possible to have two actions associated with a button
> (the first to pop up the window, the second to execute a CursorMove
> command) I would know how to do this, but apparently that's not possible.
> There must be another way which I'm not seeing.

You're on the right track, instead of binding it to Exec foo, bind it to
a function that does all the actions you require, eg:

AddToFunc MyExecFunc
+ I Exec $0
+ I Wait $0
+ I Next ($0) WarpToWindow 50 50

Now you can use MyExecFunc xterm, instead of Exec xterm or whatever :)

-- 
-------------------------------------
taviso_at_sdf.lonestar.org | finger me for my gpg key.
-------------------------------------------------------
--
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 Sat Mar 05 2005 - 12:35:55 GMT

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