Re: FVWM: Page-placement of windows?

From: Bob Woodside <proteus_at_pcnet.com>
Date: Thu, 17 Dec 1998 21:22:52 -0500 (EST)

"Philippe BOURDEU d'AGUERRE" <bda_at_aime.insa-tlse.fr> wrote:
> Brad Giaccio wrote:
> >
> > In versions 2.1.x you can use StartsOnPage d x y,
> >
> I was very happy to find this feature which was high in my wish list,
> but I am a bit disappointed because it doesn't work very well.

        Er, excuse me, it works superlatively well. :-)

>
> I try to use:
>
> Style "Netscape*" SkipMapping, StartsOnPage 0 1 0
>
> with an InitFunction which starts Netscape with option -iconic.
>
> It fails, Netscape always starts on Page 0 0 0 :=(
> But it works without -iconic option.

        The problem lies in code that is much older than the StartsOnPage
logic. FVWM bypasses any of the window placement logic (where StartsOnPage
operates) if the window has the wmhints initial_state properrty set to
IconicState. This is what happens when you use the -iconic command line
argument.

        I'm not quite sure what the reason for this was...perhaps to defer
the placement logic until the window is actualy mapped for the first time.
I see an inconsistencly in the handling that puzzles me, but it may give
you a temporary workaround. If you use the StartIconic style instead of
using the -iconic arg, it slips right on through the placement code and
ends up on the page where you wanted it.

        There's another quirk: the Desk component of the StartsOnPage spec
is honored even though the page isn't (technical reason - the desk has
nothing to do with what we might call the "page placement", which is
stricly a function of the x,y positions of the window, so the desktop
is set, but the relative positioning of the window is bypassed).

        I'll look into this as soon as I can, and see whether I can change
the old code without breaking something else. In the meantime, you might try
adding StartIconic to the Style spec for those windows you want started iconic
(you *do* also have to lose the -iconic arg when invoking the program - that's
what does the dirty work).

> I think also that both options StartsOnPage and StartsOnDesk could be
> grouped together in a single option.

        Consider StartsOnPage as a replacement for StartsOnDesk. As Brad
pointed out, it does both. Consider StartsOnDesk as being retained for
backward compatibility, and eligible to be removed in a future release.


- Bob

--
Visit the official FVWM web page at <URL: http://fvwm.math.uh.edu/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Thu Dec 17 1998 - 20:19:04 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:38:02 BST