On Wed, May 23, 2001 at 11:07:36AM +0200, Andre Bonhote wrote:
> hi there, ol' list!
>
> i've got a very annoying problem on which i worked already some years
> ago (yes, YEARS).
>
> i have a keyboard fetish. i only use my mouse when necessary. now i've
> got my windoze key assigned to pop up a new xterm window using smart
> placement. this works great, as expected. the problem now is, that i'd
> like to automatically warp my pointer (sloppy focus) to the new window
> and focus it there. i tried this:
>
> AddToFunc TermFunc
> + I exec xterm
> + I next (*) focus
>
> and
>
> + I next flipfocus
>
> and
>
> + I warptowindow 5p 5p
Your problem is that the xterm is started asynchronously. Thus,
the window does not yet exist when the warptowindow or flipfocus
line is executed. Try this function instead:
AddToFunc TermFunc
+ I exec xterm
+ I wait xterm
+ I next (xterm) warptowindow 5p 5p
You don't even have to warp the pointer to the window to give it
the focus:
Style foobar GrabFocus
and then start the xterm with
Exec xterm -T foobar
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 23 2001 - 05:12:08 BST