On Thu, 1 Dec 2005, Adam Chodorowski wrote:

Hi.

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. But the return value does get used, like in all _alt hooks you return 'true' if you've handled the event or 'false' otherwise.

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 .

        -Etan

Reply via email to