I've spent some time learning the way fvwm wors with styles, and looked into how to implement the EwmhWindowTypeStyle command I suggested. There are at least two possible ways to do it:

One is to make use of the style list, and add a window type field to the style id. That would require the ewmh_window_type value to be set before lookup_styles is called, which would make the style EWMHIgnoreWindowType hard to implement. However, the window tye stiles would be applied before other styles, and thus easy to override, so the ignore style wouldn't really be needed. On the other hand the styles would be in risk of accidental overriding by any Style * command in the user config.

Another way is to keep the window type styles in a separate array, and apply them at a fixed time, as done now. That would keep the window type settings applied late, and the need for the EWMHIgnoreWindowType style would stay.

I'm in favor of the first one, as it's more configurable, but I'd like some more input.

/Viktor

Reply via email to