Dominik Vogt <fvwm-workers@fvwm.org> writes:
> In my eyes, implementing contitional styles breaks up into three
> things: features, performance and design of the code.  Here are my
> thoughts.
> 
>  1) Possible features
> 
>      - Regular expression matching in styles.
>      - Tell fvwm to only match by name or by icon name or by
>        resource or by class.
>      - Styles tied to window ids (some kind of enhanced window
>        state); destroy when the window dies.
>      - Styles depending on window state, e.g. styles that are
>        applied to maximized or sicky windows.  This offers much
>        more flexibility for individual windows.
>      - ...
> 
>  2) Performance
> 
>      - State dependent styles may cause serious performance
>        problems since the window's style has to be checked
>        whenever its state changes.  Perhaps it's possible to give
>        each window a flags structure that marks which states do
>        not use the default style?
> 
>  3) Design of the code
> 
>      - Clean and easy to understand.  I'd prefer to keep only a
>        single list of styles.
>      - There must be some way to find out which parts of the
>        window style have to be changed when the window state
>        changes.  Otherwise, state changes would become visually
>        unpleasant (the whole window is redecorated).
> 
> Any comments, more features, states, etc.?

I don't understand the motivation for some of the more elaborate
solutions.

Starting with a simple:

Style [Class=XTerm,Name=dumbo*] ...

would handle 99% of the need.

I don't see how the performance would be any different than
the current wildcard matching to 3 possible names.  I know theres
additional logic, I just don't think it amounts to anything we have
to worry about.  In some cases, there is less matching, I know thats
the way I intend to use it,  Ie. just supply the class as a backup
for my xterms that I don't match by name.

-- 
Dan Espen
444 Hoes Lane  Room RRC 1C-214           E-mail: [EMAIL PROTECTED]
Piscataway, NJ 08854                     Phone: (732) 699-5570
--
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]

Reply via email to