On 27 Nov 2003 23:11:39 +0000, Andy Arbon wrote: > > Mikhael Goikhman wrote: > >>Excuse me for butting in, but I thought I'd give this idea a go. When I > >>try and use the function I get the following output on the console: > >>import: Unable to read X window image (0x60000e). > >>import: Missing an image filename. > > >You probably didn't copy it correctly. The "+ I" should be "&&". > > >>Also, I had to comment out the bottom + I Iconify, otherwise I get a > >>kind of 'bouncing' effect, where the window iconises and then > >>immediately deiconises. This could be because the former command is > >>failing though AFAIK. > >It should not bounce, even if PipeRead failed. > > Hello, and as usual thanks for replying Mikhael ;) > > Apologies about the incorrect line. It was correct to start with, but > probably got mucked up at some point when I was trying to work out the > problem. I have corrected it, but still get the original problem, > complete with the above error message and 'bouncing'. > > DestroyFunc IconifyWithScreenshot > AddToFunc IconifyWithScreenshot > + I echo "Iconnify running" > + I Raise > + I PipeRead "import -geometry 64 -frame -resize 64 -silent -window > $[w.id] $[HOME]/.fvwm/icon.tmp.$[w.id].png \ > && echo WindowStyle IconOverride, Icon $[HOME]/.fvwm/icon.tmp.$[w.id].png \ > || echo Nop" > + I Iconify
This function alone works well when called as "Pick IconifyWithScreenshot". But you can't use it in the iconify event of FvwmEvent, because the event is called after the iconification is done. You probably expected that the event _replaces_ the internal iconification. The event is only an add-on. Think about this, in the event function itself you can't use Iconify command, like you do here, otherwise it will trigger an iconify event again (in this case it triggers deiconify, because the window is already iconified). Either fill a feature request about "preiconify" event or explicitelly call this function instead of Iconify. Regards, Mikhael. -- 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]
