Re: FVWM: How to keep the application on the page in which it was started ?

From: Mikhael Goikhman <migo_at_cortext.co.il>
Date: Thu, 7 Sep 2000 00:07:14 +0200

On 06 Sep 2000 12:12:01 +0200, Sauveron Damien wrote:
>
> > It is possible to implement this in 2.3.19+ using special variables
> > $[vp.x], $[vp.y], $[vp.width], $[vp.height] (divide the first by the third
> > and the second by the forth to get page coordinates) and PipeRead+echo
> > to construct Style Netscape StartsOnPage <pagex> <pagey> command.
> > I think it would be good to have also ready to go $[page.nx], $[page.ny],
> > so PipeRead+echo is not needed in examples like this.
> >
> > DestroyFunc StartNetscapeOnTheCurrentPage
> > AddToFunc StartNetscapeOnTheCurrentPage
> > + I PipeRead `echo Style Netscape StartsOnPage $$[$[vp.x]/$[vp.width]] \
> > $$[$[vp.y]/$[vp.height]], SkipMapping`
> > + I Exec exec netscape
> >
> > Bind StartNetscapeOnTheCurrentPage in your FvwmButtons or start netscape
> > using 'FvwmCommand StartNetscapeOnTheCurrentPage' shell command.
>
> This method does not go with the 2.2.4 or in any case I obtain the message

As I said, this only can work with 2.3.19+ versions.
I see no way how it may be possible in 2.2.4, even FvwmM4 does not suply
coordinates of the current page on the desk.

> In fact I will like that the method goes for all the applications. But if
> it should be defined a function as you propose it I shoed it only for the
> applications as Netscape which spend time so that their window appears.

It was a working idea only, you can extend it. For example it is possible
to create StartOnTheCurrentPage function, which gets 1, 2 or more
parameters like command and pattern (in quotes) and uses "$0", "$1".

A clean solution is to restore Style StaysAnywhere after waiting for an
application to be mapped (Wait pattern). This may be tricky.

BTW, maybe I should not tell how something is possible in the developement
fvwm versions, just answer, not possible in 2.2.4? What do others think?

Regards,
Mikhael.
--
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 Wed Sep 06 2000 - 17:08:12 BST

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