Re: FVWM: Asynchronous behaviour

From: Scott Smedley <scottie7_at_tpg.com.au>
Date: Tue, 6 Jul 2004 01:46:33 +1000

Hi Rusty,

: The problem I get is that I'd like to use Tavis Ormandy's excellent
: thumbnail creation code. This takes two seconds to run on my machine,
: so my thought was to do it in the background - actually, to do it behind
: the other Window.

I'm not sure I have the ideal solution for you, however:

The thumbnailing operation can be split into 2 parts:
1. immediate actions
2. deferred actions

Immediate actions would be stuff like raising the window, grabbing
a screenshot & then iconifying the window.

The deferred stuff (which takes most of the processing time) encompasses:
recording the current icon image, creating the thumbnailed icon image,
setting the icon image to the new thumbnail.

All the deferred stuff can be done in a script & Exec'ed. Communication
with FVWM (in the script) would be trivial with FvwmCommand.

Once FVWM does the Exec it's no longer waiting (for PipeReads) &
hopefully it will all appear much more responsive.

SCoTT. :)
--
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 Jul 05 2004 - 10:52:55 BST

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