FVWM: the "Wait" Function

From: Christopher Wolf <cwolf_at_micro.ti.com>
Date: Mon, 9 Jun 1997 11:57:56 -0500 (CDT)

I use the following to control a few main xterms that I always use.
(I use the animation just for the heck of it).

One problem is that this does not seem to Raise a window if it is
currently open onscreen. I preseume this is due to the Wait command
actually waiting for a NEW window to pop up with the given name.

AddToFunc RaiseFocus-Named-Xterm
+ "I" None [$0] Exec exec xterm -name $0 &
+ "I" Next [$0] Iconify -1
+ "I" Wait $0
+ "I" Next [$0] WarpToWindow 50 50
+ "I" Next [$0] Raise
+ "I" Next [$0] Focus
+ "I" Next [$0] AnimatedMove $1p $2p


Is there any way to rewrite this to make it work like I'm implying I'd
like it to? Namely, that it will either create or uniconify a window
of the given name, and then raise it to the top, and if it already is
non-iconified, then just raise and focus.

-Wolf


--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Mon Jun 09 1997 - 11:58:52 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:00 BST