On 10 August 2011 20:04, Andre Sobotovych <andre.sobotov...@gmail.com> wrote: > Everything seems to work as expected except for the time when Firefox > initially comes up. The 1st Firefox window looks like as if you were > holding your cursor on a window handle (which I'm not ) and mouse > cursor is positioned right in the middle of the window and looks like > a four-way arrow waiting for me to position the window. As soon as I > remove CenterWindow function, the 1st window loads and gets positioned > correctly. > > Is there anything that I'm doing wrong and is there a way to fix this > behavior (without upgrading to the most recent version of FVWM)? > > Build system uses FVWM version 2.4.19.
Use 2.6.2, please. > # Function to start Firefox > DestroyFunc StartFirefoxKiosk > AddToFunc StartFirefoxKiosk > + I Exec exec scim -d > + I Exec exec /usr/bin/firefox -P default > + I All (firefox-bin) ResizeMove 100 100 0 0 > > DestroyFunc CenterWindow > AddToFunc CenterWindow > + I ThisWindow Piperead "echo Move \ > +$(( $[vp.width]/2-$[w.width]/2 ))p \ > +$(( $[vp.height]/2-$[w.height]/2 ))p" > > DestroyModuleConfig FE-CenterWindow: * > *FE-CenterWindow: Cmd Function > *FE-CenterWindow: add_window CenterWindow > > Module FvwmEvent FE-CenterWindow Use "PositionPlacement Center" instead of the above. Hence: Style foobar PositionPlacement Center -- Thomas Adam