FVWM: Auto Focus on NewWindow (FvwmEvent busted?)

From: Christopher Petersen <maver_at_nortelnetworks.com>
Date: Thu, 19 Apr 2001 20:41:30 -0400

OK. I've been through the FAQ...forward, backward, and sideways
in an attempt to spare the list. And what I found in the FAQ will
not work for me.

Specifically, I cannot get answer 3.18 to do what I want. Here's
the example given in 3.18:

     DestroyModuleConfig FvwmEvent*
     *FvwmEvent add_window SetGeometryForMyWindow

     DestroyFunc SetGeometryForMyWindow
     AddToFunc SetGeometryForMyWindow
     + I Next ("My Window") Move +10p +10p
     + I Next ("My Window") Resize 100p 200p

     AddToFunc StartFunction I Module FvwmEvent

What I want is to warp the focus to a specific new window when it
pops up (say, the "Netscape: Find" window). I attempt to do this
(in version 2.2.5) by:

     DestroyModuleConfig FvwmEvent*
     *FvwmEvent add_window WarpToFind

     DestroyFunc WarpToFind
     AddToFunc WarpToFind
     + I Next ("My Window") Focus
     + I Next ("My Window") WarpToWindow 50 33

     AddToFunc StartFunction I Module FvwmEvent

This doesn't work. WHY?

BTW, I've also tried replacing "add_window" with other events
such as "raise_window" and "deiconify". No luck. I've also
tried replacing "Next" with "WindowId $0". No luck.

If you can, please help.
-chris
--
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 Thu Apr 19 2001 - 19:42:34 BST

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