On 16 Mar 2003 17:02:54 -0800, Craig Milo Rogers wrote:
>
> Today, out of the blue, I decided that I wanted to apply
> styles to specific windows (and not to window names, classes, or
> resources, any of which may the same for multiple windows) on my FVWM
> desktop. I noticed that a request to do this was already pending in
> the FVWM bug site(id #568), but seeing that it's been over 2 years
> since the enhancement request was queued in the bug tracking system, I
> decided to look into it for fun.
I am not against applying this patch (because it is small), but the
problems with it are obvious:
1) We already have ambiguity, because we mix window names, resources
and classes. This patch adds additional ambiguity.
2) There is no any indication that this is a window id, so expect bugs.
Do a simple experiment, create a window, apply a style to its id,
close a window, open a completely another window, the old style is
applied to it, because it has the same window id. I would think
the styles working on window ids should expire at the moment a
window is closed.
The proper solution is, of course, to have named patterns, with a syntax
similar to:
Style (Class "XTerm", Name "user_at_host") ...
Current (Class XTerm) Style (Id $[w.id]) MiniIcon ...
Key S A CM Pick Style (Id $[w.id]) SloppyFocus
This is still in todo list.
P.S. Please always send patches in "diff -u" format only.
Regards,
Mikhael.
--
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 Fri Mar 21 2003 - 12:10:10 GMT