[comp.windows.x] motion events

RWS@ZERMATT.LCS.MIT.EDU (Robert Scheifler) (09/30/87)

    Date: 28 Sep 87 14:07:49 GMT
    From: godot!sherouse@mcnc.org  (George W. Sherouse)

    1.  I have been unable to bet XGetMotionEvents to return any more than
    0 events under any circumstances.

Servers are not required to maintain motion history, and current servers
do not.  This might get fixed in the next release.

			BTW, where is the meaning of the Time structure
    defined?  Yes, I know it is milliseconds, but milliseconds since Jim
    Gettys' birth or what?

Since an arbitrary epoch, typically the (re)start of the server.

    2.  I have been unable to generate a motion event with state ==
    'NotifyHint'.

    3.  Is PointerMotionHintMask intended to be a modifier of the other
    MotionMasks or a peer?

It is a modifier; it says "when the other masks say to send motion
events, you can send them infrequently" where infrequently has a
specific definition (see 8.4.1.2 of the Xlib manual).  Note that
infrequently is *not* required to include a rest-state position.

    4.  It appears that (PointerMotionMask | PointerMotionHintMask)
    generates events with much coarser granularity (perhaps compressed?)
    than does PointerMotionMask alone or Button2MotionMask alone or
    (Button2MotionMask | PointerMotionHintMask).

The granularity when asking for hints should be coarser than when not
asking for hints.  The granularity of (PointerMotionMask | PointerMotionHintMask)
should be identical to (Button2MotionMask | PointerMotionHintMask) when
button-2 is actually pressed.