Andre Sobotovych
2011-08-10 19:04:43 UTC
Hi Everyone,
I've added following into my .fvwm2rc (see below). The purpose is to
start Firefox as soon as windows manager comes up. The CenterWindow
function (taken from FVWM FAQ page) is supposed to center any window
that comes up (mostly the ones that are generated by Firefox).
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.
# 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
Thank you in advance.
Andre
I've added following into my .fvwm2rc (see below). The purpose is to
start Firefox as soon as windows manager comes up. The CenterWindow
function (taken from FVWM FAQ page) is supposed to center any window
that comes up (mostly the ones that are generated by Firefox).
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.
# 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
Thank you in advance.
Andre