2008/9/24 Torquil Macdonald Sørensen <[EMAIL PROTECTED]>:
> Hello, is there a way to tell FVWM to always place windows inside the
> desktop, at least when the window size is less than the desktop size.

Surely you mean s/less/greater/ here?  Unless you're referring to
"EWMHBaseStruts" but that's tangential to what you've written below.

> Sometimes they are placed so that the titlebar is not visible, because it is
> above the visible desktop. In my .fvwm2rc, I have
>
> Style * NoIcon, SmartPlacement, RandomPlacement
>
> and I'm using FVWM 2.4.19

With FVWM 2.5.X (2.5.26 preferrably) you can fudge this with
"PositionPlacement" as a style option.  If you don't want to upgrade,
you'll have to do the converstion post-mapping:

DestroyModuleConfig a:*
*a: add_window 'ThisWindow (!Transient) PipeRead `[ $[w.width] -gt
$[vp.x] ] && echo "ResizeMove x y"'`

AddToFunc StartFunction I Module FvwmEvent a

Not tested, should work.   Go read up on the parts you don't
understand, and substitute "x" and "y".  But do please consider
upgrading to 2.5.X first of all.

-- Thomas Adam

Reply via email to