Discussion:
FVWM: force initial placement on screen?
Tom Horsley
2014-08-21 13:25:39 UTC
Permalink
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?
Thomas Adam
2014-08-22 09:20:36 UTC
Permalink
Post by Tom Horsley
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

Loading...