On Mon, Jan 24, 2000 at 03:23:01PM -0800, Patrick Cevasco wrote:
> I'm using fvwm2-2.2.2-3
>
> I have several programs (like Netscape) which I run during InitFunction and would like them to pop-up at specific locations and sizes on different desks within FVWMPager. For example, I have Desks 0 thru 3 and would like Netscape to load to Desk 1 with a certain size and location without Focus moving to Desk 1.
>
> I define the Style like:
>
> Style "Netscape" Icon mini-nscape.xpm, SkipMapping, StartsOnDesk 1
>
> ...add a Function call within the InitFunction
>
> DestroyFunc "InitFunction"
> AddToFunc "InitFunction"
> + "I" Function SpawnNetscape
>
> ...and have the Function defined as
>
> DestroyFunc "SpawnNetscape"
> AddToFunc "SpawnNetscape"
> + "I" Next [Netscape] Move 12p 20p
> + "I" Exec exec /usr/local/netscape/netscape
> + "I" Prev [Netscape] Maximize 91 89
>
> Netscape pop's up on the correct desk and focus doesn't change but the Move and Maximize commands are "ignored". I've shuffled things around a couple of different ways like:
>
> DestroyFunc "SpawnNetscape"
> AddToFunc "SpawnNetscape"
> + "I" Next [Netscape] Move 12p 20p
> + "I" Next [Netscape] Maximize 91 89
> + "I" Exec exec /usr/local/netscape/netscape
>
> But that doesn't work either. I also used FvwmIdent to find the correct Class (Netscape) and Resource (Navigator) and neither work. Most programs are easy because of "-geometry".
That's because fvwm doesn't wait for the netscape window to appear
before continuing the function. The 'Wait' command can do this,
but it's a dangerous thing. If no window with the given name
ever appears you can hang fvww (I think there's a key combination
to bug out of this, but I don't know which).
Bye
Dominik ^_^
--
Dominik Vogt, dominik.vogt_at_gmx.de
Reply-To: dominik.vogt_at_gmx.de
--
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 Mon Jan 24 2000 - 19:08:51 GMT