(unknown charset) Re: FVWM: 'Maximize grow grow' automatically.

From: (unknown charset) Dominik Vogt <fvwm_at_fvwm.org>
Date: Tue, 30 Jul 2002 10:46:43 +0200

On Mon, Jul 29, 2002 at 03:29:27PM -0600, Rob 'Feztaa' Park wrote:
> Alas! Fvwm spake thus:
> > > Would it be possible to do this, without affecting the behavior of
> > > the other xterms that I open individually?
> >
> > Try this:
> >
> > addtofunc XtermCreateGrow
> > + i exec exec xterm
> > + i wait xterm
> > + i next (xterm) maximize grow grow
> >
> > addtofunc Create4XTerms
> > + I XtermCreateGrow
> > + I XtermCreateGrow
> > + I XtermCreateGrow
> > + I XtermCreateGrow
> >
> > AddToMenu foobar
> > + "4 XTerms" Create4XTerms
>
> Didn't work; the end result is that one already opened xterm grew,
> another opened and grew, a second opened and did nothing, and then a
> third and fourth opened which both grew.

Well, it's not clear what you expect of growing. It works like
this: it takes a window and extends its four borders until it
hits the border of a different window from the outside. As you
can imagine, that algorithm doesn't work well with overlapping
windows. Usually it doesn't make sense at all to maximize more
than one window on a single page, and it gets worse with "grow".

Actually, why do you think you need "grow"? What is the layout of
your desktop before the xterms are created and how would you like
it with them? Please draw ASCII graohics to illustrate your
needs.

> Aside from the fact that it's growing the wrong ones, it's also growing
> them before the others open which results in one fully maximized behind
> some others grown into odd shapes.
>
> > However, it's really better to provide the xterms with the proper
> > geometry manually. The "Next" command can not guarantee that the
> > command is applied to the correct window.
>
> Aw, but manually is too hard! That means I'd have to hardcode the size,
> which would be a PITA if I ever change X resolutions.

I can't speak for you, but the only time I change the resolution
is when I get a new machine. However, it *is* possible to write
these lines in a way that takes care of the dispülay resolution by
invoking a shell script via PipeRead. I can write one that
satisfies your need once I understand what you want to do.

Bye

Dominik ^_^ ^_^

 --
Dominik Vogt, mail: dominik.vogt_at_schlund.de, phone: 0721/91374-382
Schlund + Partner AG, Erbprinzenstr. 4-12, D-76133 Karlsruhe
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Tue Jul 30 2002 - 03:48:02 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:53 BST