On Thu, 5 Jul 2007 19:52:35 +0200
Sven Geggus <[EMAIL PROTECTED]> wrote:

> Emilie Ann Phillips schrieb am Donnerstag, den 05. Juli um 19:48 Uhr:
> 
> > I usually put those sorts of configurations in my .Xdefaults.
> > For example I have my xterms set to be 100x80 with the following line
> > 
> > xterm*geometry: 100x80
> 
> This will not prevent the xterm from beeing resized to something smaller
> than this!
> 
At most, you could do something like this:

1.- Get the window size using $[w.width] and $[w.height]
2.- Use FvwmEvents to check if the window is of a given type, each time you 
cross
        a window border.
3.- Act consequently.

But the problem is that, usually (not in all cases, though) terms measure
geometry in characters (80x24 or whatever), while FVWM (as any other WM)
can only handle pixels (and that is what you get into $[w.width] and
$[w.height]. You can get a more accurate measure using only the client
portion ($[cw.width] and $[cw.height]). If you know the internal term border
(urxvt can set them, I don't know about xterm) and you know the fonts
geometry and spacing, you could try to make an aproximate conversion, not
nice, but it is the only idea I can think of at the current state of the
things.

I think that konsole accept a pixel based geometry, not sure though. That
would make things easier... Gnome-terminal doesn't as far as I know. 
-- 
Jesús Guerrero <[EMAIL PROTECTED]>

Reply via email to