specifying window geometry

Hello,

This is probably a FAQ, but is not in the FAQ on http://www.fvwm.org

I am using fvwm 2.5.12 and mozilla 1.7.3; I want the initial mozilla window to have a specific geometry, but it doesn’t seem possible to configure this in mozilla. So I thought I would do it via .fvwm2rc.

Currently I’m using the solution suggested by the FAQ:

*FvwmEvent-NewWindow: add_window Foobar

AddToFunc Foobar

  • I ThisWindow (“Mozilla”) Move 2p 130p
  • I ThisWindow (“Mozilla”) Resize 1575p 1021p
  • I Focus
  • I WarpToWindow

AddToFunc StartFunction

  • I FvwmEvent FvwmEvent-NewWindow

The problem with this solution is that the window is first opened with some incorrect geometry, and only then it is moved and resized: there’s a lot of flickering on the screen.

It should be possible to tell fvwm to use the geometry I specify from the start. How ?
If it is not possible with fvwm currently, should I file a feature request ?

–goglu

[size=84]
[color=blue]
Hi,

Try this, I just tested it and it works (fvwm-2.5.x at least):

bjd
[/size]
[/color]

DestroyFunc StartFunction
AddToFunc StartFunction
+ I Module FvwmBanner
#+ I Module FvwmAnimate
+ I Module FvwmAuto 120 -menter "AutoRaise" "Nop"
+ I Module FvwmEvent

*FvwmEvent: add_window Foobar

DestroyFunc Foobar
AddToFunc Foobar  
+ I Echo Foobar   
+ I ThisWindow (*mutt*) Move 2p 130p
+ I Focus
+ I WarpToWindow

Thanks bjd, but that’s more or less exactly what I am already using. I can see the window move.

[size=84][color=blue]
Hi,

I am sorry, I forgot to exchange mutt for Mozilla. I had tested it with
these two lines:

  • I ThisWindow (“Mozilla”) Move 29p 7p
  • I ThisWindow (“Mozilla”) Resize 800p 870p

but while doing some further testing I temp. exchanged it for mutt.

The bottomline is, this works fine for me, I do not see the problem
as you describe it – which of course is pretty uninformative to you.
Mozilla comes up instantly, and is at the correct, specified geometry
instantly. Maybe it would be informative to state that I am running
fvwm-2.5.12.

There is a fvwm option somewhere to compensate for non flickering,
maybe that would help a little, although I admit that’s probably trying
to defeat a symptom rather than the disease.

Could it be there’s some other style set (implicitly) for mozilla that
clashes or overlaps in functionality with this one?

bjd
[/size][/color]

Hi,

Thanks for your answer. I am also running fvwm-2.5.12.

What happens if you use a completely different geometry, like Move 400p 40p and Resize 300p 300p ? You still don’t see the window move ?

I’m asking this because it might happen that Mozilla uses the right geometry by coincidence on your system.

Could it be there’s some other style set
(implicitly) for mozilla that clashes or
overlaps in functionality with this one?

I think so, although I’m unable to find where it is. However, I believe that if fvwm2 directly opens the window with the right geometry (rather than open it with the geometry mozilla asks for and then move and resize it), there shouldn’t be any clash.

–goglu

Could it be there’s some other style set
(implicitly) for mozilla that clashes or
overlaps in functionality with this one?

Oh, you mean a fvwm Style ? Then the answer is no, I’ve just checked my .fvwm2rc file.

[size=84][color=blue]

What happens if you use a completely different geometry, like Move 400p 40p and Resize 300p > 300p ? You still don’t see the window move ?

Tried this, and it works just as expected, I instantly get a small, square Mozilla window.
There’s no visible resizing.

bjd
[/size][/color]

Well, I’m puzzled.

I’ve just tried with a .fvwm2rc file containing nothing else than what you suggested, and I still get the flickering.

I’m running out of ideas. Maybe it could be useful if someone else tried and reported what he obtained here.

You aren’t running Xorg with xcompmgr, are you? Because xcompmgr introduces quite a bit of flickering in my experience…

I use Xorg but not xcompmgr.