On Sun, Sep 30, 2007 at 05:02:44PM +0200, Sven Geggus wrote: > Dominik Vogt schrieb am Sonntag, den 30. September um 16:39 Uhr: > > > At the moment, MinWindowSize and MaxWindowSize do not support > > sizes given in characters. All you can do is give the desired > > minimum size in pixels. > > This does not come very handy in conjunction with Terminal emulators > like rxvt as pixel sizes depend on font-sizes which could even change > during runtime. > > Would it be difficult to patch fvwm to support sizes in characters > for MinWindowSize and MaxWindowSize in addition to pixels?
No, not difficult, just a bit of standard work. Currently, the min and max size is calculated immediately when the style is parsed (file style.c). Currently it can be given as a percentage of the screen size (no suffix) or in pixels (suffix 'p'). In both cases it is stored in the style structure expressed in pixels. This data structure needs some extension to describe the fact that the size limits can be expressed in characters. > Looking at the manpage I get the impression, that some commands (e.g. > Resize) already do support something like this. > > Thus my proposed feature would be something like this: > > MinWindowSize 80c 24c Yes. Ciao Dominik ^_^ ^_^ -- Dominik Vogt
signature.asc
Description: Digital signature
