
9 Feb
2008
9 Feb
'08
10:37 a.m.
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@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH