Thank you all, for helping me.

You can see the result at
http://www.stud.uni-karlsruhe.de/~ugk8/current-screenshot.jpg

It really is beautiful :-)

And here are the final(?) functions:

DestroyFunc Thumbnail
AddToFunc Thumbnail
+ I Raise
+ I Piperead "xwd -silent -id $[w.id] > $[HOME]/.fvwm/icon.tmp.$[w.id].xwd"
+ I Iconify
+ I Exec nice -19 convert -resize 64x54 -frame 1x1 -mattecolor black -quality 0 
xwd:$[HOME]/.fvwm/icon.tmp.$[w.id].xwd png:$[HOME]/.fvwm/icon.tmp.$[w.id].png; 
FvwmCommand 'WindowId $[w.id] WindowStyle IconOverride, Icon 
$[HOME]/.fvwm/icon.tmp.$[w.id].png, StaysOnBottom'

DestroyFunc DeThumbnail
AddToFunc DeThumbnail
+ I DestroyWindowStyle
+ I Exec rm -f $HOME/.fvwm/icon.tmp.$[w.id].*
+ I deiconify-and-focus


Best regards
        Klaus


On Mo, Jan 12, 2004 at 12:08:30 +0000, Mikhael Goikhman wrote:
 > 
> > But only taking the screenshot has to be done synchronously.  Try
> > 
> >   DestroyFunc Thumbnail
> >   AddToFunc Thumbnail
> >   + I Raise
> >   + I PipeRead "xwd -silent -id $[w.id] \
> >       > $[HOME]/.fvwm/icon.tmp.$[w.id].xwd"
> >   + I Iconify
> >   + I Exec FvwmCommand 'WindowId $[w.id] Iconify on'; \
>                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> >       create-png; \
> >       FvwmCommand 'WindowId $[w.id] WindowStyle Icon icon.png'
> 
> For the sake of correctness, the marked part above should be removed.
> It is important to do "Iconify" in the function and not in Exec to avoid
> the double-iconify-corrupts-files problem. And to hope that Exec is
> finished before the user deiconifies/iconifies the window again to avoid
> the same problem.
> 
> Regards,
> Mikhael.
 


--
5) People say Linux is ugly. How does that make you feel?
Torvalds: They'll be the first against the wall when the revolution comes.
          Let's see just how ugly they think it is when they have a few
          bulletholes in them.
--
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]

Reply via email to