On Thu, 01 Dec 2005 18:04:37 +0100, Etan Reisner <[EMAIL PROTECTED]> wrote:

How is one supposed to use the region_do_warp_alt hook? I can't find any function exposed to the Lua side to warp the pointer, nor does it seem to use the return value of the hook for this.

I believe the answer is "you don't", at least not from lua, I believe when I asked Tuomo the answer was Lua should have an Xlib library which should be what you use here.

That's too bad... :-/

I actually wrote myself a script to not warp the mouse when I'm bringing up the scratchpad which uses this hook. You can find it here: http://www.eden.rutgers.edu/~deryni/script_nowarp_scratchpad.lua .

Ah. so one can use the hook to disable warping. It's not completely useless then. ;-)

What I'd like to do is restoring the position the pointer had previously in that frame or, if that's to difficult, atleast warp the pointer to the middle of the frame (so I don't have to move it so damn far).

--
Adam Chodorowski <[EMAIL PROTECTED]>

Reply via email to