>
> On Mar 25, 11:38am, Kai Grossjohann wrote:
> }
> } Bart> When using focus-follows-pointer, Focus (e.g. from
> } Bart> FvwmWinList) warps the pointer to the upper left corner of the
> } Bart> window frame. Is there some way to get it to put the cursor
> } Bart> actually inside the window, rather than on the frame?
> }
> } I use a function instead:
> }
> } AddToFunc GoThere "I" Iconify -1
> } + "I" Focus
> } + "I" CursorMove 3 3
>
> I haven't tried this with 2.0 yet, but in 1.24r the CursorMove happens
> only if the (un)Iconify does *not* happen.
>
> *FvwmWinListAction Click1 Iconify -1,Focus,CursorMove +3 +3
>
> --
> Bart Schaefer Vice President, Technology, Z-Code Software
> schaefer_at_z-code.com Division of NCD Software Corporation
> http://www.well.com/www/barts
>
Actually in version 1.24 it's pretty easy to warp the pointer to the
middle of the window, instead of the upper left corner. In v1.24 all you
need to do is to locate the following line in functions.c:
XWarpPointer(dpy, None, Scr.Root, 0, 0, 0, 0, x+2, y+2);
^^^^^^^^
and change it to:
XWarpPointer(dpy, None, Scr.Root, 0, 0, 0, 0,
x+t->frame_width/2, y+t->frame_height/2);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
I just checked the source code of v2.0.41. The same piece of code is now
in builtins.c, but since it looks exactly the same as the corresponding
part in functions.c of v1.24, I guess the above modification would work
in 2.0 too.
Ching-Han
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Mon Mar 25 1996 - 15:23:17 GMT