On 06 Sep 2000 02:09:22 +0200, Sauveron Damien wrote:
>
> How to keep the application on the page in which it was started?
> For example, I launch Netscape in the page (1x1) and immediately before the window appear I go in the page (0x1).
> Netscape will appear in the page (0x1) whereas I wanted that it remains in the page (1x1).
> How to configure Fvwm2 to solve this problem?
I would suggest to use:
Style Netscape StartsOnPage 1 1, SkipMapping
In case you want netscape to appear on the page you clicked, you should do
some programming, because there is no way to know backward about a page on
a click/enter time when a window is mapped.
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.
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 Tue Sep 05 2000 - 21:32:52 BST