On 23 Feb 2004 14:04:17 +0100, Dominik Vogt wrote: > > On Mon, Feb 23, 2004 at 07:24:42AM -0500, Carl Mummert wrote: > > Dominik Vogt writes: > > >On Sat, Feb 21, 2004 at 02:29:39PM -0500, Carl Mummert wrote: > > >> I want fvwm to apply a new style when the title of my xterm changes. > > >> So I put this in my .fvwm2rc: > > >> > > >> Module FvwmEvent > > >> *FvwmEvent: window_name RecaptureWindow > > > > > >There are two mistakes here. > > > ... > > > Try this: > > > > > > AddToFunc StartFunction > > > + I Module FvwmEvent > > > *FvwmEvent: window_name RecaptureWindow > > > > Thanks for the tip. I changed my .fvwm2rc to match your stuff above. > > FvwmEvent still didn't work, though. I needed to add > > > > *FvwmEvent: Delay 5 > > > to prevent the recapture from falling into (what seems to be) an > > infinite loop. Does the Recapture function generate window_name > > events? > > Yes. When a window is (re)captured, the various ...name events > are sent.
We need ReStyle (or StyleAgain or ReStyleWindow) command that reevaluates the context window style (no name events should be sent). Absense of such command is one of the main reasons why RecaptuteWindow can't be removed. Probably having Style option AutoReStyleOnNameChange would solve the Carl's problem better, this is a pretty reasonable feature. Regards, Mikhael. -- Visit the official FVWM web page at <URL:http://www.fvwm.org/>. To unsubscribe from the list, send "unsubscribe fvwm-workers" in the body of a message to [EMAIL PROTECTED] To report problems, send mail to [EMAIL PROTECTED]