On Mon, 11 Aug 2008, Hans Voss wrote:

When I start fvwm I start a bunch of applications (like firefox and
thunderbird) that I put on specific pages (using: Style "Firefox"

I'm not an expert in the inner working of fvwm, but I have the impression that firefox is not a well-behaving application (X11-wise). I have a bunch of commands in my .fvwm2rc since ages ... I also want firefox to start in a specific page, but I do not care about the position in the page, however I'd wish the SIZE of the window to be what I selected and not the latest size after a manual resize.

This stuff was suggested long ago by somebody on this list, and is unchanged since then.

I have this lot near the top to assign the wished size (the trick is to use an event handler).

DestroyModuleConfig Event-FF: *

*Event-FF: Cmd Function
*Event-FF: PassId
*Event-FF: add_window ResizeFireFox

DestroyFunc ResizeFireFox
AddToFunc   ResizeFireFox
 + "I" ThisWindow ("Gecko" !Transient) Resize 707p 980p

while later on, where I define all the styles, I have this style definition (apparently one has to use "Gecko", not "Firefox" or "firefox")

Style Gecko StartsOnPage 1 0 0, SkipMapping, NoPPosition

This seems to work for me.
(and I did not invent it myself)

--
------------------------------------------------------------------------
Lucio Chiappetti - INAF/IASF - via Bassini 15 - I-20133 Milano (Italy)
For more info : http://www.iasf-milano.inaf.it/~lucio/personal.html
------------------------------------------------------------------------
Do not blame ME, I did NOT vote Berlusconi.
------------------------------------------------------------------------

Reply via email to