Discussion:
FVWM: window positioning issue under FVWM 2.4.19
Andre Sobotovych
2011-08-10 19:04:43 UTC
Permalink
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
Thomas Adam
2011-08-10 19:12:34 UTC
Permalink
Post by Andre Sobotovych
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.
Post by Andre Sobotovych
# 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
Thomas Adam
2011-08-10 20:26:23 UTC
Permalink
Hi Thomas,
thanks for the quick reply.
I've tried this option and it doesn't seem to work.
I just ran a grep on fvwm-2.4.19 directory and it doesn't find
"PositionPlacement" keyword.
Is it because "PositionPlacement" is available only in later versions?
Any other suggestions on how to fix this?
When I said "use 2.6.2", it's because 2.4.X is no longer support, and
that option is in 2.6.2. So try 2.6.2.

-- Thomas Adam

Loading...