On Wed, 13 Sep 2006 08:50:24 -0400
"Michael V. De Palatis" <[EMAIL PROTECTED]> wrote:

> On Wed, Sep 13, 2006 at 08:40:26AM +0100, Thomas Adam wrote:
> > On Tue, 12 Sep 2006 20:47:56 -0400
> > "Michael V. De Palatis" <[EMAIL PROTECTED]> wrote:
> > 
> > > One thing that I have not been able to figure out how to do after
> > > pouring over documentation, old messages to the mailing lists,
> > > forum posts, etc. is this: How can I set up a style for a
> > > specific window so that when it is created, it is placed at a
> > > particular location on the screen?
> > 
> > Usually, via a command-line option such as "-geometry" "-g", etc.
> 
> That's all fine and good, but that sort of goes around what I want to
> do. In Sawfish, it's a trivial matter of specifying where you want a
> window placed with its matched windows. The nice thing about doing it
> this way is that it *does* work with programs that don't accept
> -geometry.

Indeed, but then note that it's circumventative of a much larger issue
-- wherein it ought to fixed at the application level.

> > > For example, for most of my windows, I use manual placement,
> > > because I find that if I don't do that, I end up moving windows
> > > around anyway, so why not just move it to begin with and cut out
> > > the middle man? But then there are others, such as the Gaim buddy
> > > list, which I prefer to always be in the same spot. This is what
> > > I would like to do.
> > 
> > Those are broken applications, IMO.  If a program doesn't accept
> > geometry options then it's probably an annoying EWMH-based one which
> > delights in remembering its position for you.  See the main FVWM FAQ
> > for ways of circumventing that with FvwmEvent, as well as another
> > explanation for it in #fvwm's FAQ.
> 
> I'll look through it again. Does this mean that there is a way to get
> styles to place my window properly? So far, I didn't find it...

No it does not.  Note the following (taken off the top of my head):

Style someCrappyApplication NoPPosition

DestroyModuleConfig FE-MoveWindow:*
*FE-MoveWindow: Cmd Function
*FE-MoveWindow: add_window myFunction

Module FvwmEvent FE-MoveWindow

DestroyFunc myFunction
AddToFunc   myFunction
+ I ThisWindow (some_name, !Transient) Move 200 800

That's what you would do.  (And read up on the Move command and the
sorts of parameters it accepts, as well as looking at possible
ResizeMove as well depending on your needs).

-- Thomas Adam

Reply via email to