Re: FVWM: That thing I said last time: asynchronous

From: Piotr Zielinski <Piotr.Zielinski_at_cl.cam.ac.uk>
Date: Tue, 06 Jul 2004 18:07:01 +0100

This is what I have in my .fvwm2rc (partially stolen from Tavis, I think):

DestroyFunc CaptureWindow
AddToFunc CaptureWindow
+ I Piperead "xwd -silent -id $[w.id] > /tmp/fvwm.icons/icon.tmp.$[w.id].xwd"
+ I Exec nice -19 convert -scale 110 -frame 1x1 -mattecolor black -quality 0 xwd:/tmp/fvwm.icons/icon.tmp.$[w.id].xwd png:/tmp/fvwm.icons/icon.tmp.$[w.id].png; FvwmCommand "WindowId $[w.id] WindowStyle IconOverride, Icon /tmp/fvwm.icons/icon.tmp.$[w.id].png"

>From time to time the following code is executed for each window (much
more often for windows whose icon hasn't been captured yet)

ThisWindow (CurrentPage, Raised, !Iconic) CaptureWindow

However, capturing the icon when a window is being iconified still
introduces a noticeable delay, so I don't use it. Also, I'm afraid
that merely Raising the window before capturing is not enough for the
above condition to be true (different layers, different pages, ...).

Piotr



--
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 Tue Jul 06 2004 - 12:09:43 BST

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