Thomas Adam wrote:
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.
I meant "less", as Perry interpreted it :-)
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
I guess this is under the assumption that you thought that I meant
"greater" in the original email. But thanks anyway. I will check into
this "Minoverplacement with various penalty points" that you mentioned
for Perry.
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.
It's the FVWM that is installed on all the unix/linux university
computers here at the University of Oslo. I don't think I will bother to
install FVWM2.5.26 in my home folder just to fix this problem.
Thanks,
Torquil Sørensen