[xmonad] darcs patch: Decoration: fix mouse dragging jump ...
Brandon S. Allbery KF8NH
allbery at ece.cmu.edu
Sat Feb 9 10:37:32 EST 2008
On Feb 9, 2008, at 3:38 , Andrea Rossato wrote:
> can you please check if the reasoning is fine?
Works for me, with a note and a nit:
> 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.
> 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). :)
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university KF8NH
More information about the xmonad