[xmonad] darcs patch: Decoration: fix mouse dragging jump ...
Andrea Rossato
andrea.rossato at unibz.it
Sat Feb 9 11:50:12 EST 2008
On Sat, Feb 09, 2008 at 10:37:32AM -0500, Brandon S. Allbery KF8NH wrote:
> > 2. the absolute coordinates of the pointer events are:
> > (dx + px), (dy + py)
>
> aka x_root and y_root in the ButtonEvent, if this saves you anything.
Sure it does, and it makes the code clearer (which is not bad too)!
> > 3. the distance of the pointer event from the decorated window's
> > origin (wx,wy) is:
> > (dx + px) - wx, (dy + py) -wy
>
> I'd call this "offset", because "distance" is the length of the vector from
> (x_root,y_root) to (wx,wy). :)
Luckily I'm writing this in Haskell, and so no risk of terminology
confusion whatsoever. :)
Thank you very much. It was really worth waiting.
Cheers
Andrea
More information about the xmonad
mailing list