On Thu, Aug 21, 2014 at 09:25:39AM -0400, Tom Horsley wrote:
> I generally like programs that remember where they were
> and come back up in the same place, but now I have a UHD
> monitor at work, and if I'm at home with a remote desktop
> that is 1/4 the size, windows that remember positions
> sometimes remember they are entirely off the screen :-).
>
> Is there any way in fvwm to override program provided
> positioning only when that would put the window entirely
> off the screen?
There's no direct way in fvwm although it could be possible to patch fvwm to
always force windows onto screen, but I wouldn't like this.
Instead what you can do is make use of FvwmEvent:
DestroyModuleConfig FE:*
*FE: add_window SomeFunction
DestroyFunc SomeFunction
AddToFunc SomeFunction
+ I PipeRead `[[ [$w.x] -lt 9 && $[w.y] -gt 10 ]] && echo "MoveToPage"`
Change to suit.
-- Thomas Adam