If you’re using a very recent version of FVWM, see: ‘PositionPlacement’ as a better solution to this over FvwmEvent.
You simply need to do add something like this to the function which does the resizing:
+ I Prev (CurrentPage, AcceptsFocus) Resize ....
– Thomas Adam