Re: FVWM: Sleep/Wait in an Fvwm Function.

From: Dan Espen <dane_at_mk.telcordia.com>
Date: Mon, 27 Jan 2003 17:40:12 -0500

"Dameron, Gregg" <gregg.dameron_at_lmco.com> writes:
> > > AddToFunc SetWallpaper
> > > + I Exec xv -root -maxpect -quit $0
> > > + I Refresh
> > >
> > > This doesn't work as I want it to as.. the Refresh command is being
> issued
> > > before xv finishes painting the root window.
> > >
> > > I want to set a sleep/wait period of a couple of seconds before Refresh
> is
> > > called... how do I achieve it?
> >
> > + I PipeRead 'xv -root -maxpect -quit $0'
>
> I'm curious - does the "Refresh" line in SetWallpaper remain as it is? Does
> fvwm guarantee that PipeReads are processed to completion before moving on
> to the next "+ I" statement in a complex function?
>
> (From earlier posts, I would have guessed that
>
> + I PipeRead 'xv -root -maxpect -quit $0; sleep 2; echo Refresh'
>
> would have been required to guarantee the desired processing sequence.)

Either way would work but the sleep isn't needed.
PipeRead is synchronous. Fvwm won't go on
to the next command until PipeRead completes.

-- 
Dan Espen                           E-mail: dane_at_mk.telcordia.com
--
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 Mon Jan 27 2003 - 16:42:22 GMT

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