Re: FVWM: Determine window's Icon

From: Tavis Ormandy <taviso_at_sdf.lonestar.org>
Date: Mon, 24 Nov 2003 16:30:35 +0000

On Mon, Nov 24, 2003 at 04:19:25PM +0000, Mikhael Goikhman wrote:
> It would be really nice if we had an additional parameter to DestroyStyle
> and DestroyWindowStyle to destroy only one specific style option, not all
> style entry options. This would allow a lot of new dynamical functionality.
> In your case you destroy all window-specific changes, not just Icon.

That would be very cool, as WindowStyle is a brand new feature I havnt
had a chance to do much else with it, so its working for me right now :)

>
> > DestroyFunc DeIconifyWithScreenshot
> > AddToFunc DeIconifyWithScreenshot
> > + I WindowID $0 DestroyWindowStyle
> > + I Exec rm -f $HOME/.fvwm/icon.tmp.$0.png
> >
> > DestroyModuleConfig FvwmEvent-IconWatch: *
> > *FvwmEvent-IconWatch: Cmd
> > *FvwmEvent-IconWatch: PassID
> > *FvwmEvent-IconWatch: deiconify DeIconifyWithScreenshot
>
> Please do not do it like this. The last 9 lines should be:
>
> DestroyFunc DeIconifyWithScreenshot
> AddToFunc DeIconifyWithScreenshot
> + I DestroyWindowStyle
> + I Exec rm -f $HOME/.fvwm/icon.tmp.$[w.id].png
>
> DestroyModuleConfig FvwmEvent-IconWatch: *
> *FvwmEvent-IconWatch: deiconify DeIconifyWithScreenshot
>
> Or to eliminate Exec call, even use: Test (f file) Exec exec rm file.
>

Ahh, I've seen you mention this before to someone else, Thanks :)

> On another topic, reading the Gentoo forum, it seems that Gentoo package
> of fvwm-themes is both old (0.6.2) and does not work with fvwm 2.5.x (how
> is this possible?). This should be fixed by Gentoo people, I guess.
>

Thanks for reminding me, I'll get that updated.

-- 
-------------------------------------
taviso_at_sdf.lonestar.org | finger me for my gpg key.
-------------------------------------------------------
--
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 Nov 24 2003 - 10:33:18 GMT

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