Re: FVWM: open xterm, place mouse pointer above ???

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Wed, 17 Jan 2001 14:07:49 -0600

On 17 Jan 2001 11:20:40 +0100, philipp (in private message) wrote:
>
> Thanks Mikhael,
> I read the FAQ, and applied the code for my version (2.2.4), but
> continue to have a bug.
>
> When I open a window (via a menu I call <code>Exec xterm&</code>) the
> add_window event is triggered. However how do I get the WindowID of the
> newly created window. I tried:
>
> DestroyModuleConfig FvwmEvent*
> *FvwmEvent add_window SetFocus2NewWindow
>
> DestroyFunc SetFocus
> AddToFunc SetFocus2NewWindow
> + I Next ("xterm") Focus
> + I Next ("xterm") WarpToWindow
>
> Problem: If I have more than one xterm window, fvwm doesnt always warp
> to the newest one.
>
> Is there a way to get the window ID of the last (=newest?) window in
> windowlist?
>
> I suspect something like should work:
>
> AddToFunc SetFocus2NewWindow
> + I WindowID['currentwindow'] Focus
> + I WindowID['currentwindow'] WarpToWindow

Just like the FAQ says, using FvwmEvent in fvwm-2.2.x does not solve this
problem:

     3) If you have more than one app window, it is not guaranteed
        that the right one will be used.

Solving this problem is only possible in 2.3.x versions, where FvwmEvent
has PassId option, which does exactly what you suggest, by passing the id
of a new window to add_window event function. This id is available as $0.
Sorry, there is no full solution for 2.2.x versions that I can think about.

> Sorry to keep bothering with this rather unimportant stuff. Any help
> still apreciated.

I suppose this is important, for you at least. Feel free to ask the list.

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 Jan 17 2001 - 14:09:41 GMT

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