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 [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]
