Re: FVWM: No luck with Focus ...

From: Dominik Vogt <fvwm_at_fvwm.org>
Date: Wed, 9 May 2001 14:45:15 +0200

On Wed, May 09, 2001 at 02:30:43PM +0200, Markus Grunwald wrote:
> Hi !
>
> Can someone explain to me, why that doesn't work ?
>
> AddToFunc XCalcFunction
> + "I" Exec xcalc -geometry +300+200
> + "I" Next [ Calculator ] focus
>
> The calculator shows up, but it has no focus...
> Ah, yes: FVWM version 2.3.30

This does not work because fvwm does not wait until the calculator
appears before continuing the function. Thus,

  Next [ Calculator ] focus

is executed before the calculator window is created. Try this
instead:

  Style Calculator GrabFocus

or wait for the window before continuing:

  AddToFunc XCalcFunction
  + "I" Exec xcalc -geometry +300+200
  + "I" Wait Calculator
  + "I" Next [ Calculator ] focus

Bye

Dominik ^_^ ^_^

--
Dominik Vogt, email: d.vogt_at_lifebits.de
LifeBits Aktiengesellschaft, Albrechtstr. 9, D-72072 Tuebingen
fon: ++49 (0) 7071/7965-0, fax: ++49 (0) 7071/7965-20
--
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 May 09 2001 - 07:45:38 BST

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