Thanks, the solution works well with a couple mods. A window turns red
when the title changes to **name, and back to dimgrey when the title
changes back.  Now I have to figure out how to get the Pager to
update.

DestroyFunc UpdateIMStyle
AddToFunc   UpdateIMStyle
 + I Style "*"    BackColor dimgrey
 + I Style "\\*\\**" BackColor Red
 + I Style "*Firefox"    BackColor #8888AA
 + I UpdateStyles

*FvwmEvent: window_name UpdateIMStyle

FvwmPager correctly updates the window titles whenever they change,
but only updates the backcolors occasionally, in response to focus
events.

Any suggestions for how to force the pager to redraw?

A KillModule FvwmPager restart won't work because that triggers a
window_name event.

Thanks
Peter

On 2/7/06, seventh guardian <[EMAIL PROTECTED]> wrote:
> On 2/7/06, Peter Williams <[EMAIL PROTECTED]> wrote:
> > I submitted this as a feature request (#1718) almost a year ago, but
> > given the lack of progress on incoming feature requests, i was hoping
> > someone on this list might have a better idea of how do this...
> >
> > Recapture Alternative Needed for Window Name Change
> >
> > I need the window style to change when its name changes; for instance
> > to have xterm styles based on the current working directory or user,
> > or to have Gaim IM windows turn red when the Gaim Message Notification
> > plugin inserts ** in front of an IM window with an unread message.
> > (this is especially convenient given the way the Pager colors windows)
> >
> > What I am doing now is
> > Style "\\*\\**" BackColor Red
> > *FvwmEvent: window_name RecaptureWindow
> > *FvwmEvent: Delay 1
>
>
> Try this:
>
>
> DestroyFunc UpdateStyles
> AddToFunc UpdateStyles
> + I Style "\\*\\**" BackColor Red
> + I Style (etc etc)
>
> *FvwmEvent: window_name UpdateStyles
>
> Cheers!
>   Renato Caldas
>
>

Reply via email to