Re: [Pipmak-Devel] About the mouse un-grabbing in Pipmak
Status: Alpha
Brought to you by:
cwalther
From: Christian W. <cwa...@gm...> - 2008-01-01 10:36:00
|
Hello Aidan Thanks for looking into this problem! > I have managed write a patch for Pipmak that > removes the code for releasing the mouse based on mouse motion events, > and adds a Lua function that releases the mouse when called. It also > makes the "G" key a key-binding for this new Lua function in the > "defaults.lua" file. Hmm. I'm not too happy with that solution, to be honest. How are users supposed to find that out? And for those that automatic ungrabbing works (like me), wouldn't it be better to have it continue to just work, rather than forcing them to go to the keyboard every time? > Not only does this solve my problem with Pipmak not giving > my mouse back, so I can get back to my other programs, but I also think > it might be more portable across different window managers, than the > current behaviour of Pipmak. Have you tried basing the ungrabbing on the actual speed of the mouse (i.e. taking timing into account), rather than just the pixel delta as it is currently done? That's what would seem the proper solution to me. Or as a more general question, what are your usual pixel deltas when you slam the mouse against the window edge? Another solution may be to ungrab when the unclamped mouse position has gone a certain distance outside the window, so speed wouldn't matter (but we'd still have the edge resistance that is necessary to reach the edge on Windows and X11). > Is anyone else interested in this patch, and if so, how should I submit > this as a contribution to the Pipmak project? Please post it either to this mailing list, or to the patch tracker at <http://sourceforge.net/tracker/?group_id=112801&atid=663294>. -Christian |