On Tue, Jul 30, 2002 at 06:33:05PM -0600, Rob 'Feztaa' Park wrote:
> Alas! Mikhael Goikhman spake thus:
> > > not sure if the '-T' is necisito.
> >
> > Yes, it is necessary to distinguish them, because Rob wants to grow xterms
> > in the certain order if I understand. -n is stronger, -name is even more.
> >
> > When Wait above is passed it is not guaranteed that 4 xterms are already
> > up, it is only guaranteed that only one xterm4 is up. And if you group all
> > four Wait together it may hang from time to time. This works (note -g):
> >
> > DestroyFunc Xterm4CreateGrow
> > AddToFunc Xterm4CreateGrow
> > + I Exec exec xterm -n xterm1 -g +0+0
> > + I Wait xterm1
> > + I Exec exec xterm -n xterm2 -g -0+0
> > + I Wait xterm2
> > + I Exec exec xterm -n xterm3 -g +0-0
> > + I Wait xterm3
> > + I Exec exec xterm -n xterm4 -g -0-0
> > + I Wait xterm4
> > + I Next (xterm1) Maximize grow grow
> > + I Next (xterm2) Maximize grow grow
> > + I Next (xterm3) Maximize grow grow
> > + I Next (xterm4) Maximize grow grow
>
> Ok, you've almost got it! ;)
>
> This works, except that the second (or later) time I run it, whichever
> xterm had the mousecursor over it doesn't get grown, and an xterm with
> the same name on another desk gets ungrown.
The function relies on unique window names. If you run it a second
time before all those windows were closed, it fails. Try
+ I (xterm1, CurrentDesk, CurrentPage) Maximize grow grow
Or give the xterms unique names:
+ I Exec exec xterm -n "xterm_+$[vp.x]+$[vp.y]_at_$d" -g +0+0
...
+ I (xterm_+$[vp.x]+$[vp.y]_at_$d) Maximize grow grow
...
Bye
Dominik ^_^ ^_^
--
Dominik Vogt, mail: dominik.vogt_at_schlund.de, phone: 0721/91374-382
Schlund + Partner AG, Erbprinzenstr. 4-12, D-76133 Karlsruhe
--
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 Wed Jul 31 2002 - 03:48:39 BST