FVWM: MoveToPointer Function

From: S. Anderson <sa_at_xmission.com>
Date: Mon, 1 Jul 2002 17:00:53 -0600

Hi everyone,
with fvwm 2.5.2, I am trying to write a function that moves a window
to the mouse pointer location. This is what I have com up with so far:

 DestroyFunc MoveToPointer
 AddToFunc MoveToPointer
  + I echo $[pointer.x] $[pointer.y]
  + I All ($0) AnimatedMove $[pointer.x] $[pointer.y]

when I issue this:
 MoveToPointer Xmag

I get a:
    [FVWM][Echo]: 238 348
but the window is moved to +3046+3563

is this a bug?

Thanks,
sa

P.S. heres some more...
[FVWM][Echo]: 271 741
xmag is moved to +3468+7587

[FVWM][Echo]: 0 0
xmag is moved to +0+0

[FVWM][Echo]: 10 10
xmag is moved to +128+102

--
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 Jul 01 2002 - 18:01:42 BST

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