[PATCH 1/3] dix: ConfineCursorToWindow must clip by siblings

Keith Packard keithp at keithp.com
Tue Aug 12 16:23:38 PDT 2014


Adam Jackson <ajax at redhat.com> writes:

> By the protocol spec:
>
>     If a confine-to window is specified, then the pointer will be
>     restricted to stay contained in that window.
>
> "Contained" is defined as:
>
>     A window "contains" the pointer if the window is viewable and the
>     hotspot of the cursor is within a visible region of the window or a
>     visible region of one of its inferiors. The border of the window is
>     included as part of the window for containment. The pointer is "in"
>     a window if the window contains the pointer but no inferior
>     contains the pointer.
>
> The visible region must account for sibling clipping.  borderSize is the
> raw geometry of the window, whereas borderClip is borderSize clipped by
> siblings.

Much as I agree with your interpretation here, we haven't done this for
almost as long as you've been alive, I'm tempted to say the code is
"correct" at this point, independent of what it does.

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 810 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20140812/e186178c/attachment.sig>


More information about the xorg-devel mailing list